2016-07-04 136 views
0

我試圖在我的centOS服務器上安裝GMP庫(https://gmplib.org/),但沒有運氣。無法在centOS中安裝GMP

我運行此命令: -

./configure 

,它給了我這樣的結果: -

[[email protected] 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 
[[email protected] gmp-4.2.2]# 

我已經嘗試了所有可能的解決方案。這裏有什麼問題?

+0

您正在使用什麼版本的CentOS的? –

+0

@JuliePelletier CentOS Linux release 7.2.1511(Core) – Akshay

回答

3

與系統的安裝程序安裝:

yum install php-gmp 
+0

我從字面上花了數小時試圖爲它找到一個解決方案。你知道我可以如何安裝它用於本地主機使用(使用WAMP)。編輯: - 它說我可以在7分鐘內接受你的答案。 – Akshay

+0

在這樣的應用程序包中,通常有一種訪問php.ini的簡單方法,可能會將其註釋掉,但如果沒有,只需發佈​​另一個問題。 –

+0

'extension = php_gmp.dll'我的php.ini沒有註釋它。 – Akshay