Go to PHP source directory, find Bcmath, compile and install
[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
After installation, the following path appears, copying the path
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/56/wKiom1kf_9_AOw2BAAAeah3KJjM812.png-wh_500x0-wm_ 3-wmp_4-s_2025546498.png "title=" qq picture 20170520163516.png "alt=" Wkiom1kf_9_aow2baaaeah3kjjm812.png-wh_50 "/>
Copy the bcmath.so under this path to the directory where php.ini is located
[Email protected] bcmath]# Cd/usr/local/php-5.5.0/lib/php/extensions/no-debug-non-zts-20121212/[[email protected] no-debug-non-zts-20121212]# ls bc*bcmath.so[[email protected] no-debug-non-zts-20121212]# CP bcmath.so/usr/local/ php-5.5.0/etc/
Enter php.ini to add PHP configuration
[Email protected] bcmath]# vim/usr/local/php-5.5.0/etc/php.iniextension=bcmath.so
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/96/56/wKiom1kgAZnxIXHIAAAZ4EiwqLk348.png-wh_500x0-wm_ 3-wmp_4-s_199142525.png "title=" qq picture 20170520164249.png "alt=" Wkiom1kgaznxixhiaaaz4eiwqlk348.png-wh_50 "/>
Restart PHP
[Email protected] ~]# KILL-USR2 ' cat/usr/local/php/var/run/php-fpm.pid '
Browser View Pjpinfo ()
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/56/wKiom1kgA9Hjm_QcAAAspAQkLys143.png-wh_500x0-wm_ 3-wmp_4-s_702987555.png "title=" Qq20170520165222.png "alt=" Wkiom1kga9hjm_qcaaaspaqklys143.png-wh_50 "/>
This article is from the "Shei" blog, make sure to keep this source http://kurol.blog.51cto.com/11433546/1927787
Linux-bcmath Compiling and installing