免费注册 查看新帖 |

Chinaunix

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

在 redhad 上安装 gcc 4.0.2 的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-24 22:41 |只看该作者 |倒序浏览
因为我的机器上没有 gcc 所以才需要安装

可是安装的过程中却要求我需要 cc 才能继续,这不是矛盾吗?

请大家帮助我解决这个问题吧。

[root@localhost gcc]# /root/gcc_src/gcc-4.0.2/configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
creating 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

[root@localhost gcc]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2005-10-25 00:06 |只看该作者

在 redhad 上安装 gcc 4.0.2 的问题

一没有cc,二没有gcc,如何编译?

你去下载binary发行版本的好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP