|
我从网上下了个gcc-3.4.1的源码包,我的系统是redhat9,在运行configure时报错:[root@redhat9 gcc-build]# /home/hlf/tool/gcc-3.4.1/configure --prefix=/home/hlf/gcc-3.4.1 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
loading cache ./config.cache
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking build system type... i386-redhat-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
target-libf2c target-libobjc
(Any other directories should still work fine.)
collect2: cannot find `ld'
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
提示必须设置环境什么的,第一次装也不知道哪里设置,安装的步骤方法也是按照网上的一个文档做的,哪位大哥有成功经验的,帮忙看看,谢谢。 |
|