CentOS 6.4php
Xampp 7.1.12apache
下載PHP7.1.12的源碼包spa
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"debug