LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 546|回复: 1

gcc 安装问题

[复制链接]
发表于 2004-7-21 10:33:46 | 显示全部楼层 |阅读模式
之前机器上没有装过gcc,我下了一个gcc-3.2.2.tar.gz的一个源码包,打算重新编译再进行安装,但是在执行
./configure
的时候居然报错,

Created "Makefile" in /home/test/install/gcc-3.3.3 using "mt-frag"
./configure: line 8: 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-7-21 11:41:06 | 显示全部楼层
你的计算机上没有装gcc  ,
而用源码包装东西要求先装了gcc 。

你可以先装二进制发布包。

如装个rpm 或 deb包。

ps: gcc 没必要自己编译。她本身就优化很好了的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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