LinuxSir.cn,穿越时空的Linuxsir!

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

编译GCC时的一个错误

[复制链接]
发表于 2005-7-8 21:33:43 | 显示全部楼层 |阅读模式
先谢了!

信息如下:

[linxj@localhost gcc-3.1]$ ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /home/linxj/gcc/gcc-3.1 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.
 楼主| 发表于 2005-7-8 21:34:50 | 显示全部楼层
怎样才能得到cc这个命令啊?
回复 支持 反对

使用道具 举报

发表于 2005-7-8 22:05:26 | 显示全部楼层
需要安装gcc才行。如果你的系统上没有gcc的话就不能编译源代码了。你用的是哪个版本的linux呀?如果是redhat/fedora的话可以用rpm包安装,debian用apt-get安装。
回复 支持 反对

使用道具 举报

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

本版积分规则

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