安装了一上午的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. 换成“--enable-languages=c,c++,java”试试。 还是不行啊.
总是提示:
./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
这什么意思啊? gcc安装了没有?若没有,要下rpm包安装的,因为无编译工具,是无法编译的。 他就是要安装GCC的,gcc是不是一定药用rpm安装? gcc也要用编译起编译出来啊,你没有gcc自然要找binary包。 没有gcc你用什么编译啊,不能编译只要用rpm 或是binary包喽 www.rpmfind.net
页:
[1]