LinuxSir.cn,穿越时空的Linuxsir!

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

关于redhat下安装gcc出现以下问题请教各位!

[复制链接]
发表于 2008-4-28 23:47:24 | 显示全部楼层 |阅读模式
creating cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
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
在安装gcc的过程中出现了以上东东,然后就无法安装gcc了,请教各位如何解决?帮帮忙,谢谢了!
发表于 2008-4-29 09:12:11 | 显示全部楼层
RedHat应该有现成的rpm包吧,找到后rpm安装,不用自己编译吧。
自己编译gcc的话,其过程中系统还要去检测gcc,嘿嘿……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-29 14:05:49 | 显示全部楼层
用RPM包来安装都不行啊,也出现同样的提示啊
回复 支持 反对

使用道具 举报

发表于 2008-5-9 23:50:55 | 显示全部楼层
1)可能你原先系统中没有gcc。
2)你的系统原先安装了gcc,但是gcc所在的目录不在$PATH中,将gcc的安装目录添加进PATH就行了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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