GMP是The GNU MP Bignum Library,是一个开源的数学运算库,它可以用于任意精度的数学运算,包括有符号整数、有理数和浮点数。它本身并没有精度限制,只取决于机
GMP是The GNU MP Bignum Library,是一个开源的数学运算库,它可以用于任意精度的数学运算,包括有符号整数、有理数和浮点数。它本身并没有精度限制,只取决于机器的硬件情况。
环境:已安装PHP 5.3.27
##当前目录## [root@ipython gmp]# pwd /software/source/php-5.3.27/ext/gmp ###GMP 的依赖 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 ##加载## [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 gmp gmp gmp support => enabled PWD => /software/source/php-5.3.27/ext/gmp OLDPWD => /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转载保留版权:IT辰逸 《PHP 编译GMP扩展》
本文链接地址:
本文版权采取: BY-NC-SA 协议进行授权,转载注明出处。除IT-Tools、News以及特别标注,本站所有文章均为原创。
如果喜欢可以: 点此订阅本站
0 顶
0 踩
上一篇:Ubuntu 14.04 GUI手动登陆
相关文章推荐:
发表评论
0.043@1217145008 © 2014 OutOfMemory.CN 联系我们 Java内存溢出处理 OutOfMemory小说连载 程序员文档 站点地图
,
Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.