我試圖在32位CentOS 6 VPS上從源代碼製作Sphinx。爲什麼配置說GCC安裝時找不到C編譯器?
當我運行此命令:
./configure --prefix=/usr/local/sphinx
我得到這個錯誤輸出:
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.
我不明白的是,安裝GCC那麼爲什麼不能配置找到一個可以接受C編譯器?
這裏是百勝的輸出:
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
是怎麼回事?
'哪個gcc輸出'/ usr/bin/gcc'和'echo $ PATH'輸出'/ usr/local/jdk/bin:/ home/gnotes/perl5/bin:/ usr/local/bin:/斌:在/ usr/bin中:在/ usr/local/sbin中:/ usr/sbin目錄:/ sbin目錄:在/ usr/local/bin目錄:在/ usr/X11R6/bin中:/家庭/ gnotes/bin'。我將如何將它添加到路徑? – Garry
您可以將其添加到.profile文件中。 – mti2935
如何添加到.profile文件?有沒有一個命令呢? – Ron