请问谁有这个so文件,我不懂怎么搞啊?可以直接上传到目录吗?然后再php.ini里面调吗?我的php版本是5.1.6

解决方案 »

  1.   

    在configure php的时候加上 --enable-mbstring 然后到安装目录的extensions文件夹里找mbstring.so
      

  2.   

    你用的什么版本的LINUX啊??如果是RHEL系的可以用YUM INTSALL PHP-MBSTRING如果是DEBIAN系的可以APT-GET INSTALL PHP5-MBSTRING 我只是说大概意思,具体的自己搜索吧另外就是如果自己编译的话要在./configrue的时候加上./configure --enable-mbstring 希望你能看懂我说的
      

  3.   

    RHEL系的 用YUM INTSALL PHP-MBSTRING
    会报错!
    代码如下:
    [root@xxx yum]# YUM INTSALL PHP-MBSTRING
    -bash: YUM: command not found
    [root@xxx yum]# yum install PHP-MBSTRING
    Loading "installonlyn" plugin
    Loading "rhnplugin" plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    Parsing package install arguments
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    No Match for argument: PHP-MBSTRING
    Nothing to do
      

  4.   

    ./configure --enable-mbstring我的是 PHP 5.2.8
      

  5.   

    ./configure --enable-mbstring我的是 PHP 5.2.8就这样吗?不会影响其他设置吗?不是加编译,还是重新编译?
      

  6.   

    不重新编译的话也可以。
    $:cd /5.1.6/ext/mbstring
    $:/usr/local/php/bin/phpize
    $:./configure --with-php-config=/usr/local/php/bin/php-config
    $:sudo make
    $:sudo make install
    SO文件就出来了。
      

  7.   

    奇怪, 我的环境没有这个mbstring.so也能运行mbstring的功能,不知被集成到那里去。
    你就在官方去下载个mbstring.so放到extension_dir去好了.这个是rpm安装的 
    http://rpm.pbone.net/index.php3/stat/3/limit/5/srodzaj/1/dl/40/search/mbstring.so/field%5B%5D/1/field%5B%5D/2
      

  8.   

    我的mbstring功能是系统自带的mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
      

  9.   

    在你編譯的時候加多 --enable-mbstring
    再裝一次PHP,就行啦