红联Linux门户
Linux帮助

gcc 问题

发布时间:2006-11-07 19:22:11来源:红联作者:sunsun
我下了 gcc-3.4.6 解压后运行 ./configure 出现
[yang@localhost gcc-3.4.6]$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
英文我看不懂怎么回事
下面附加信息:
[yang@localhost yang]$ gcc -v
bash: gcc: command not found
[yang@localhost yang]$ rpm -qa|grep cc
compat-gcc-c++-7.3-2.96.118
libgcc-3.2.2-5
compat-gcc-7.3-2.96.118
[yang@localhost yang]$ rpm -qa|grep cc
compat-gcc-c++-7.3-2.96.118
libgcc-3.2.2-5
compat-gcc-7.3-2.96.118
[yang@localhost yang]$ gcc dumpversion
bash: gcc: command not found
[yang@localhost yang]$

我怎样才能在机子上装是GCC
文章评论

共有 1 条评论

  1. nxfte 于 2006-11-07 19:24:50发表:

    不懂,不过上面提到了好象缺少个环境变量.