免费注册 查看新帖 |

Chinaunix

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

linux下安装gcc的问题,请教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-12 18:19 |只看该作者 |倒序浏览
我从网上下了个gcc-3.4.1的源码包,我的系统是redhat9,在运行configure时报错:[root@redhat9 gcc-build]# /home/hlf/tool/gcc-3.4.1/configure --prefix=/home/hlf/gcc-3.4.1 --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
*** This configuration is not supported in the following subdirectories:
     target-libf2c target-libobjc
    (Any other directories should still work fine.)
collect2: cannot find `ld'
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
提示必须设置环境什么的,第一次装也不知道哪里设置,安装的步骤方法也是按照网上的一个文档做的,哪位大哥有成功经验的,帮忙看看,谢谢。

论坛徽章:
0
2 [报告]
发表于 2005-04-12 18:42 |只看该作者

linux下安装gcc的问题,请教!

[quote]原帖由 "hlf5507"]hat9 gcc-build]# /home/hlf/tool/gcc-3.4.1/configure --prefix=/home/hlf/gcc-3.4.1 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-lang..........[/quote 发表:


先有机还是先有蛋的问题~!

论坛徽章:
0
3 [报告]
发表于 2005-04-12 19:25 |只看该作者

linux下安装gcc的问题,请教!

楼上的这位兄弟是什么意思,看不懂。那个命令是参照网上的一个文档运行的,能否说的详细点,谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP