首页 文章

在RHEL5中配置gcc - 在$ PATH中找不到可接受的C编译器

提问于
浏览
2

我想在RHEL5中安装Apache . 在配置httpd-2.4.2后出现以下错误:

configure: error: no acceptable C compiler found in $PATH

所以我下载了gcc-4.7.0并尝试配置它 . 仍然会出现同样的错误 .

$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libitm support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/httproot/gcc-4.7.0':
configure: error: no acceptable C compiler found in $PATH

以下是一些状态结果:

gcc --version
bash: gcc: command not found
rpm -qi gcc
package gcc is not installed
which gcc
/usr/bin/which: no gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin)
whereis gcc
gcc: /usr/libexec/gcc

我不能用 yum . 所以请帮助解决这个问题 .

2 回答

相关问题