PHP compilation GMP Extension

Source: Internet
Author: User
Tags gmp
GMP is the TheGNUMPBignumLibrary and is an open-source mathematical computing library. It can be used for any precision mathematical operations, including signed integers, rational numbers, and floating-point numbers. It has no Precision Limit, only depends on the machine

GMP is The gnu mp Bignum Library and is an open-source mathematical computing Library. It can be used for mathematical operations with any precision, including signed integers, rational numbers, and floating point numbers. It has no Precision Limit, only depends on the machine

GMP is The gnu mp Bignum Library and is an open-source mathematical computing Library. It can be used for mathematical operations with any precision, including signed integers, rational numbers, and floating point numbers. It has no precision limit, but only depends on the hardware of the machine.

Environment: PHP 5.3.27 is installed.

# Current directory # [root @ ipython gmp] # pwd/software/source/php-5.3.27/ext/gmp # Install the GMP dependency RE2C # [root @ ipython gmp] # yum install gmp-devel [root @ ipython gmp] # wget-O "re2c-0.13.5.tar.gz" [root @ ipython gmp] # tar zxf re2c-0.13.5.tar.gz [root @ ipython gmp] # cd re2c-0.13.5 [root @ ipython re2c-0.13.5] #. /configure [root @ ipython re2c-0.13.5] # make & make install [root @ ipython re2c-0.13.5] # cd .. [root @ ipython gmp] # phpize [root @ ipython gmp] #. /configure -- with-gmp [root @ ipython gmp] # make & make install # load # [root @ ipython gmp] # grep "gmp. so "/software/php/etc/php. ini extension =/software/php/lib/php/extensions/no-debug-non-zts-20090626/gmp. so # PHPINFO # [root @ dev-centos-23 gmp] # php-I | grep gmpgmpgmp support => enabledPWD =>/software/source/php-5.3.27/ext/gmpOLDPWD =>/software/ source/php-5.3.27/ext/gmp/re2c-0.13.5_SERVER ["PWD"] =>/software/source/php-5.3.27/ext/gmp_SERVER ["OLDPWD"] =>/software/source/php-5.3.27/ ext/gmp/re2c-0.13.5

Reprinted and reserved copyright: IT Chen Yi PHP compilation GMP Extension

Link:

This article copyright to take: BY-NC-SA agreement for authorization, reprinted to indicate the source. All articles on this site are original except IT-Tools, News, and special notes.

If you like: Click here to subscribe to this site

0

0 step

Previous Article: Ubuntu 14.04 GUI manual Login

Recommended articles:

Post comments

0.043 @ 1217145008©2014 OutOfMemory. CN contact us for Java memory overflow processing OutOfMemory novel serialization programmer Documentation Site Map

,

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.