以下命令在命令行下输入:
1、用cd命令进入php的源代码目录下的mbstring目录下,如“/soft/php4”,即“cd /soft/php4”
2、执行/usr/local/php/bin/phpize,(假设php安装在/usr/local/php目录下)
3、执行./configure --prefix=/soft/php4/mbstring --with-php-config=/usr/local/php/bin/php-config
4、执行make
5、执行make install
6、编辑php.ini,增加此行:extension=mbsting.so
7、搜索mbstring.so文件,将其挪到上一级目录,即ext目录下。
然后重启apache:运行 /etc/init.d/httpd restart
即可完成安装。