Home  >  Article  >  Backend Development  >  替php增加mbstring扩展 等一般扩展

替php增加mbstring扩展 等一般扩展

WBOY
WBOYOriginal
2016-06-13 10:29:56967browse

为php增加mbstring扩展 等一般扩展
注: 默认生成 extension.so的目录是
/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/
设定extension_dir的目录指向它


环境php5.2.14, 编译后不支持mbstring扩展。
假如php的源码包在/usr/local/src/php-5.2.14
php安装目录是/usr/local/php
# cd /usr/local/src/php-5.2.14/ext/mbstring/
# /usr/local/php/bin/phpize
# ./configure –with-php-config=/usr/local/php/bin/php-config
# make
# make install
执行完毕后在php.ini里增加extension=mbstring.so
重启web服务器, 看一下phpinfo, 应该支持mbstring了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn