LinuxSir.cn,穿越时空的Linuxsir!

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

安装gcc的问题

[复制链接]
发表于 2007-3-28 15:29:47 | 显示全部楼层 |阅读模式
安装 GCC时,出现这个错误是怎么回事?

[root@localhost gcc-4.1.2]# /opt/gcc-4.1.2/configure -prefix=/opt/gcc-build/ --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
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

在线等人解答!
发表于 2007-3-28 17:49:40 | 显示全部楼层
编译一个编译器首先要一个已经编译好的,可以使用的编译器.

所以,先安装一个编译好的编译器吧.如果是FC6,请使用
yum install gcc
安装好以后才可以找得到gcc,或者cc,

装好了,你也就不用编译啦.FC6最新的gcc就是4.1.2的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-28 19:26:44 | 显示全部楼层
我的是FC3.能留个QQ么,QQ请教比较方便啊~
回复 支持 反对

使用道具 举报

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

本版积分规则

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