免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6418 | 回复: 3
打印 上一主题 下一主题

[系统安装] 各位师兄,请教一个安装gcc的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-05-07 17:34 |显示全部楼层 |倒序浏览
各位师兄,我是个新手,现在是做网络管理的工作,现在想转行所以学习linux,做运维的工作,这段时间在调试安装,在装gcc的时候遇到问题,老是搞不好!
我下载的源码包装的话,可是在编译的时候就提示没有gcc,没办法安装:
./configure --prefix=/usr/local/gcc
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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 a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/gcc-4.6.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
没办法安装,然后我就下了一个rpm安装包:
rpm -ivh gccxml-debuginfo-0.9.0-0.7.20111218.el4.i386.rpm --force --nodeps
warning: gccxml-debuginfo-0.9.0-0.7.20111218.el4.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
Preparing...                ########################################### [100%]
   1:gccxml-debuginfo       ########################################### [100%]

可是也没办法安装,请师兄帮帮忙!感谢!
rpm -q gcc
package gcc is not installed

论坛徽章:
0
2 [报告]
发表于 2012-05-07 17:49 |显示全部楼层
忘记写了,我用yum来安装过
yum install gcc
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package gcc available.
Error: Nothing to do
有没有rpm安装包提供一个呢,我找了半天没找到!

论坛徽章:
0
3 [报告]
发表于 2012-05-07 17:51 |显示全部楼层
是没有注册红帽子的缘故吗?

论坛徽章:
0
4 [报告]
发表于 2012-05-15 15:46 |显示全部楼层
谢谢师兄,按照师兄的方法搞定了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP