Linux-bcmath Compiling and installing

Source: Internet
Author: User
Tags zts


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.