Sto provando a rendere Sphinx dall'origine su un CentOS 6 VPS a 32 bit.Perché configure dice che nessun compilatore C è stato trovato quando GCC è installato?
Quando eseguo questo comando:
./configure --prefix=/usr/local/sphinx
ottengo questo output di errore:
checking build environment
--------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for compiler programs
------------------------------
checking whether to compile debug version... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/gnotes/sphinx':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Quello che non capisco è che il GCC è installato quindi perché non può configurare a trovare un accettabile Compilatore C?
Ecco l'output di yum:
sudo yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.metrocast.net
* extras: centos.mirror.constant.com
* updates: mirror.lug.udel.edu
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
Setting up Install Process
Package gcc-4.4.7-3.el6.i686 already installed and latest version
Nothing to do
Che cosa dà?
'which gcc' restituisce'/usr/bin/gcc' e 'echo $ PATH' restituisce'/usr/local/jdk/bin:/home/gnotes/perl5/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home/Gnotes/bin'. Come dovrei aggiungerlo al percorso? – Garry
Puoi aggiungerlo nel tuo file .profile. – mti2935
Come posso aggiungere al file .profile? C'è un comando per questo? – Ron