2016-07-04 56 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

? –

+0

@JuliePelletier CentOS Linuxリリース7.2.1511(コア) – Akshay

答えて

3

システムのインストーラでそれをインストールしてください:あなたが使用しているのCentOSのバージョンは何

yum install php-gmp 
+0

私は文字通り、解決策を探すのに数時間を費やしました。私はそれをローカルホスト用にインストールする方法を知っていますか(WAMPの使用)。編集: - 私は7分であなたの答えを受け入れることができると言います。 – Akshay

+0

このようなアプリケーションバンドルでは、一般的にphp.iniにアクセスする簡単な方法がありますが、これはおそらくコメントアウトされていますが、そうでない場合は別の質問を投稿するだけです。 –

+0

'extension = php_gmp.dll'私のphp.iniにはコメントがありません。 – Akshay

関連する問題