2016-07-04 1 views
0

J'essaie d'installer la bibliothèque GMP (https://gmplib.org/) sur mon serveur centOS, mais il n'y a pas de chance.Impossible d'installer GMP dans centOS

J'exécuter cette commande: -

./configure 

Et il me donne ce résultat: -

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

J'ai essayé toutes les solutions possibles. Quel est le problème ici?

+0

Quelle version de CentOS utilisez-vous? –

+0

@JuliePelletier CentOS Linux version 7.2.1511 (Core) – Akshay

Répondre

3

Installez-le avec le programme d'installation du système:

yum install php-gmp 
+0

J'ai littéralement passé des heures à essayer de trouver une solution pour cela. Savez-vous comment je peux l'installer pour l'utilisation de localhost (Using WAMP). Edit: - Il est dit que je peux accepter votre réponse dans 7 minutes. – Akshay

+0

Dans de tels bundles d'application, il y a généralement un moyen simple d'accéder à php.ini qui inclut probablement le commentaire, mais si ce n'est pas le cas, postez simplement une autre question pour celui-ci. –

+0

'extension = php_gmp.dll' mon php.ini a décommenté. – Akshay