28

32 ビット CentOS 6 VPS でソースからSphinxを作成しようとしています。

このコマンドを実行すると:

./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コンパイラを見つけて構成できないのはなぜですか?

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

何を与える?

4

8 に答える 8

38

試すyum groupinstall "Development Tools"

インストールが成功すると、開発ツールの完全なセットが手に入ります。gcc、g++、make、ld ect など。その後、コード ブロックのコンパイルを再試行できます。

は推奨されていないため、代わりに次yumを使用できます。dnf

dnf groupinstall "Development Tools"
于 2013-09-17T13:26:41.487 に答える
7

私は現時点で同じ問題を抱えています。私はただ走るyum install gcc

于 2013-12-14T01:18:15.773 に答える
1

いつか gcc が として作成しました/usr/bin/gcc32。を作成してln -s /usr/bin/gcc32 /usr/bin/gccからコンパイルしてください./configure

于 2014-11-24T07:37:04.767 に答える
1

私は心に同じ問題を抱えていました。sudo apt-get install build-essential を使用してみました それでも動作しません。/usr/bin/ フォルダーに gcc-x バイナリーへのハードリンクを作成しただけです。sudo ls /usr/bin/gcc-x /usr/bin/gcc

それは私のために働いた!

于 2016-03-15T07:04:35.093 に答える
0

以下のパッケージも役立ちます。

yum install gcc glibc glibc-common gd gd-devel -y
于 2015-04-23T13:57:44.197 に答える