Linux-bcmath編譯安裝
進入php源碼目錄,找到bcmath,編譯安裝
[[email protected] ~]# cd php-5.5.38/ext/bcmath/ [[email protected] bcmath]# /usr/local/php-5.5.0/bin/phpize [[email protected] bcmath]# ./configure --with-php-config=/usr/local/php-5.5.0/bin/php-config [[email protected] bcmath]# make && make install
安裝好後,會出現下面的路徑,復制路徑
將此路徑下的bcmath.so拷貝到php.ini所在目錄
[[email protected] bcmath]# cd /usr/local/php-5.5.0/lib/php/extensions/no-debug-non-zts-20121212/ [[email protected]
進入php.ini 增加php配置
[[email protected] bcmath]# vim /usr/local/php-5.5.0/etc/php.ini extension=bcmath.so
重啟php
[[email protected] ~]# kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
瀏覽器查看pjpinfo()
本文出自 “謝育政” 博客,請務必保留此出處http://kurol.blog.51cto.com/11433546/1927787
Linux-bcmath編譯安裝