Php 无法在centOS中安装GMP

Php 无法在centOS中安装GMP,php,centos,gmp,Php,Centos,Gmp,我正在尝试在centOS服务器上安装GMP库(),但没有成功 我运行以下命令:- ./configure 它给了我这个结果:- [root@centos-512mb-ams3-01 gmp-4.2.2]# ./configure checking build system type... pentium3-unknown-linux-gnu checking host system type... pentium3-unknown-linux-gnu checking for a BSD-co

我正在尝试在centOS服务器上安装GMP库(),但没有成功

我运行以下命令:-

./configure
它给了我这个结果:-

[root@centos-512mb-ams3-01 gmp-4.2.2]# ./configure
checking build system type... pentium3-unknown-linux-gnu
checking host system type... pentium3-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -fomit-frame-pointer ... no
checking compiler gcc -O2 -fomit-frame-pointer ... yes
checking compiler gcc -O2 -fomit-frame-pointer has sizeof(long)==4... no
checking compiler icc -no-gcc ... no
checking whether cc is gcc... yes
checking compiler cc -m32 -O2 -fomit-frame-pointer ... no
checking compiler cc -O2 -fomit-frame-pointer ... yes
checking compiler cc -O2 -fomit-frame-pointer has sizeof(long)==4... no
configure: error: could not find a working compiler, see config.log for details
[root@centos-512mb-ams3-01 gmp-4.2.2]#

我已经尝试了所有可能的解决办法。这里有什么问题?

使用系统安装程序安装:

yum install php-gmp

使用系统的安装程序安装:

yum install php-gmp

您使用的是什么版本的CentOS?@JuliePelletier CentOS Linux 7.2.1511版(Core)您使用的是什么版本的CentOS?@JuliePelletier CentOS Linux 7.2.1511版(Core)我花了几个小时试图找到解决方案。您知道如何安装它以供本地主机使用(使用WAMP)吗。编辑:-它说我可以在7分钟内接受你的答案。在这样的应用程序包中,通常有一种简单的方法来访问php.ini,它可能包含注释掉的内容,但如果没有,就发布另一个问题。
extension=php\u gmp.dll
my php.ini没有注释。我确实花了几个小时试图找到解决方案。您知道如何安装它以供本地主机使用(使用WAMP)吗。编辑:-它说我可以在7分钟内接受你的答案。在这样的应用程序包中,通常有一种简单的方法来访问php.ini,其中可能包括注释掉的php.ini,但如果没有,就发布另一个问题。
extension=php\u gmp.dll
my php.ini没有注释。