PHP compilation and installation of GMP Extension

Source: Internet
Author: User
Tags gmp

I got a php-5.2.17.tar.bz2 online.

Then, use the following method:

Bzip2-D gcc-4.1.0.tar.bz2
--- After decompression, run the following command.

Tar-xvf gcc-4.1.0.tar or tar-xvf *. Tar
One more folder gcc-4.1.0 appears after resolving

 

Finally:

./Configure -- With-GMP

 

Then make

Make install

You can use GMP.

 

The generated so file is in the/usr/lib64/folder.

In fact, the compiled content is only standardized in various places. We can also find them and put them in a folder such as PhP5. Then we can configure the path to use it, the configuration file is Php. INI. If you do not know where to use this file, Use Find-name 'php. INI'

Find one and sometimes place it differently.

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.