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
即可完成安装。 Linux主机安装mbstring扩展库指南(rpm安装)
如果你用的是linux自带的apache+php+mysql
命令:
rpm -q php
得到php的版本号
然后下载php-mbstring:
[url]http://glitesoft.cern.ch/cern/slc4X/i386/yum/updates/php-mbstring-4.3.9-3.15.i386.rpm[/url]
注意:php-mbstring-4.3.9-3.15.i386.rpm这里的版本号是可以更改的,只需要更改为你的php版本号就可以
安装:
rpm -ivh php-mbstring-4.x.x-x.xx.i386.rpm
然后重启apache就可以了
页:
[1]
