Unable to install GMP in centOS

家住魔仙堡 提交于 2019-12-12 03:38:27

问题


I'm trying to install GMP Library (https://gmplib.org/) on my centOS server, but there's no luck.

I run this command :-

./configure

And it gives me this result :-

[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]#

I've tried all possible solutions. What is wrong here?


回答1:


Install it with the system's installer:

yum install php-gmp


来源:https://stackoverflow.com/questions/38190892/unable-to-install-gmp-in-centos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!