linux 编译php-bcmath扩展
2017-01-04 11:37
267 查看
0.wget http://am1.php.net/distributions/php-5.4.27.tar.gz 0.1.tar xvf php-5.4.27.tar.gz1、找到与当前PHP版本一致的源码包,解压。 2、cd到ext/bcmath目录. 3、执行/usr/local/php/bin/phpize 会发现当前目录生成了一些configure文件,如果没报错,则编译 ./configure --with-php-config=/usr/local/php/bin/php-config(这个路径是你PHP的安装目录中的,一定要确保存在) 4、如果没有报错,则make,再make install ,然后会输出一个目录地址,把该目录下的bcmath.so拷贝到你php.ini中的extension_dir指向的目录中。 5、修改php.ini,在最后添加一句extension=bcmath.sosudo killall -USR2 php-fpm 重启php-fpm
重启httpd服务,完成。
重启httpd服务,完成。
相关文章推荐
- linux 编译php-bcmath扩展
- linux 下编译安装php mongodb扩展
- Linux下编译php不编译mysql让php支持mysql扩展
- Linux 下 PHP 扩展 PDO 编译安装
- linux下编译php的amqp扩展(for rabbimq)
- Linux下手动编译安装PHP扩展的例子分享
- linux(fedora)下freetds编译安装及编译php的mssql扩展
- linux 下编译安装php mongodb扩展(佚名)
- linux环境编译安装php的扩展
- Linux下已编译PHP增加扩展so的方法,关键phpize 和config.m4
- linux系统为PHP编译imap扩展
- Linux环境下不重新编译php添加扩展模块
- Linux编译mssql扩展使用php连接sqlserver2008的使用步骤
- Linux PHP编译生成扩展与修改配置
- linux 下编译安装php mongodb扩展
- linux下为已经编译好的php环境添加新的扩展
- Linux 下 PHP 扩展 PDO 编译安装
- linux 下编译安装 php 的 gd 和 mcrypt 扩展
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- linux 不重新编译PHP 增加扩展