php扩展模块的安装
1.cd /root/php-5.6.20
2./usr/local/php/bin/php -m | grep -i curl
编译 curl 模块
cd ext/curl
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
报错:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
解决: yum -y install libcurl*
3.vi /usr/local/php/etc/php.ini
extension=curl.so
4.查看 动态扩展模块
grep '^extension=' /usr/local/php/etc/php.ini
1.进入php源码包中,找到需要安装的扩展模块目录。
cd /root/php-5.6.26/ext/mbstring
2.在扩展模块目录,运行phpize程序。
/usr/local/bin/phpize
3.进行编译安装。
./configure --with-php-config=/usr/local/bin/php-config
make
make install
阅读(1362) | 评论(0) | 转发(0) |