lu_wei3144504 发表于 2005-9-15 12:53:54

安装了一上午的GCC也没成功,帮忙吧大家

系统RET HAT 9 CORE 3
下载GCC3.4.1 源代码包

下面是命令和错误提示,帮忙看看是怎么回事吧:
# ./configure --prefix=/usr/local/gcc-build --with-local-prefix=/tools --disable-nls --enable-shared enable-languages=c,c++,java

提示:
configure: warning: enable-languages=c,c++,java: invalid host type
loading cache ./config.cache
checking host system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking target system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking build system type... Invalid configuration `enable-languages=c,c++,java': machine `enable' not recognized

checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

hohoxu_hao115 发表于 2005-9-15 13:21:33

换成“--enable-languages=c,c++,java”试试。

lu_wei3144504 发表于 2005-9-15 13:44:02

还是不行啊.
总是提示:
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler

这什么意思啊?

hohoxu_hao115 发表于 2005-9-15 14:49:23

gcc安装了没有?若没有,要下rpm包安装的,因为无编译工具,是无法编译的。

zenghero 发表于 2005-9-16 08:55:42

他就是要安装GCC的,gcc是不是一定药用rpm安装?

Kyd 发表于 2005-9-16 10:49:40

gcc也要用编译起编译出来啊,你没有gcc自然要找binary包。

fke7985 发表于 2005-9-16 12:03:40

没有gcc你用什么编译啊,不能编译只要用rpm 或是binary包喽

acheng123 发表于 2005-9-19 16:28:13

www.rpmfind.net
页: [1]
查看完整版本: 安装了一上午的GCC也没成功,帮忙吧大家