XAMPP安装PHP_GMP

CentOS 6.4

Xampp 7.1.12

下载PHP7.1.12的源码包

yum install gmp-devel
yum install m4
tar -xvf php-7.1.12.tar.xz 
cd /root/php-7.1.12/ext/gmp
/opt/lampp/bin/phpize
./configure  --with-php-config=/opt/lampp/bin/php-config
make && make install
/opt/lampp/bin/php -m | grep gmp
/opt/lampp/lampp reloadapache

reload apache 之前 记得在 php.ini里面 写extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/gmp.so"

posted @ 2018-01-08 18:35 龙小六 阅读(...) 评论(...) 编辑 收藏