gcc一点问题.......................................
我装了redhat 9.0
但是gcc不能用
不知道怎么回事
我想重新装但是又说我的cc变量设的不正确
到底怎么回事
大虾给点意见啊
晕死了!
[root@localhost gcc-3.0]# /home/wwl/download/gcc-3/gcc-3.0/configure --prefix=/usr --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Configuring for a i686-pc-linux-gnu host.
*** This configuration is not supported in the following subdirectories:
target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
(Any other directories should still work fine.)
Created "Makefile" in /home/wwl/download/gcc-3/gcc-3.0 using "mh-frag" and "mt-frag"
/home/wwl/download/gcc-3/gcc-3.0/configure: line 7: gcc: command not found
*** The command 'gcc -g -O1 -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
问题点数:50、回复次数:6Top
1 楼rzsheng(跑生活的男人)回复于 2004-05-04 11:37:11 得分 10
You must set the environment variable CC to a working compiler -- 设置环境变量。Top
2 楼yhbttfile(小兵)回复于 2004-05-04 23:11:49 得分 0
你找一个不需要编译的GCC安装吧。
其实没有什么大的区别。Top
3 楼wangguoqin1001(王国钦)回复于 2004-05-05 01:53:53 得分 20
系统里必须存在一个C编译器,才能编译GCC。Top
4 楼sharkhuang(走吧走吧!人总会慢慢长大~)回复于 2004-05-05 12:45:13 得分 0
安装好就有一个编译器啊!Top
5 楼wangguoqin1001(王国钦)回复于 2004-05-05 17:21:50 得分 0
C编译器在安装系统的时候完全可以不安装Top
6 楼yangl2000(风铃)回复于 2004-05-06 12:04:12 得分 20
可能是你没有安装,你装一下就可以了。我用的也是rh9,开始的时候也没有gcc,后来装上了就可以用了。如果你实在不知道怎么装,你就去图型方式里在添加删除程序,把开发的那部分装上就可以了。Top




