找回密码
 注册
查看: 832|回复: 2

红旗Linux下的GCC安装,搞了一上午了,不知所措!!!!

[复制链接]
发表于 2004-11-18 15:39:14 | 显示全部楼层 |阅读模式
我的系统是Red Flag 4.0桌面版。我以前没接解过linux,现在想安装一个C编译器,今天从网上下了一个GCC3.0,按照上面的方法一步步做,
1、cp gcc-3.0.tar.bz2 /usr/local
2、cd /usr/local
3、bunzip2 gcc-3.0.tar.bz2
4、tar xvf gcc-3.0
5、../gcc-3.0/configure
6、make
7、make install
当执行到第5目步时,报:
Configuring fo a i686-pc-linux-gnuoldld host.
Created "Makefile" in /usr/local/gcc-3.0 using "mt-frag"
./configure: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
发表于 2004-11-18 16:57:02 | 显示全部楼层
没有发现合适的编译器(用cc宏表示)你可以在makefile里设置一下cc的路径。或者你当初就没装一个编译器?
回复

使用道具 举报

发表于 2004-11-18 17:06:26 | 显示全部楼层
你把4.0完全安装, 就自动带了GCC,G++等等开发工具了
或者,在4。0的盘上把gcc相关的rpm装上就可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-11 15:56 , Processed in 0.024068 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表