免费注册 查看新帖 |

Chinaunix

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

请问在Unix上如何安装gcc-3.3? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-10 11:09 |只看该作者 |倒序浏览
我要在Sun Solaris7,上安装gcc-3.3(以前没有安装过)\r\n\r\n我先运行配置文件,出现下面错误提示:\r\n#./configure\r\nConfiguring for a sparc-sun-solaris2.7 host.\r\nCreated \"Makefile\" in /diskarray/edasoft/opt/soft/gcc-3.3 using \"mh-frag\"\r\n/usr/ucb/cc:  language optional software package not installed\r\n*** The command \'cc -o conftest -g   conftest.c\' failed.\r\n*** You must set the environment variable CC to a working compiler.\r\n\r\n这让我有点儿不解,我本来就是要安装gcc作为编译器,他怎么还好我设置cc呢?\r\n\r\n接着我不管3721,运行\r\n#make install\r\n/bin/sh ./mkinstalldirs /usr/local  /usr/local\r\nsh: syntax error at line 5: `@SET_LIB_PATH@\' unexpected\r\n*** Error code 2\r\nmake: Fatal error: Command failed for target `install-gcc\'\r\n\r\n总之是安装不了了\r\n\r\n于是我上google.com查相关资料,发现老外也有过同样的问题\r\n高手老外回复说,要安装gcc的安装说明,先配置环境变量,才能安装,\r\n这段话我摘录下来:\r\nwhen configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts may fail. \r\n\r\n可是我不明白怎么\r\neither cc or gcc must be in your path or you must set CC in your environment\r\n\r\n请高手帮忙,谢谢!

论坛徽章:
0
2 [报告]
发表于 2003-06-10 11:14 |只看该作者

请问在Unix上如何安装gcc-3.3?

又是一个先有蛋还是先有鸡的问题!\r\n\r\n      你的编译器都没有,显然不能编译安装gcc了,你可以下一个local的二进制包进行安装!\r\n\r\n     http://www.sunfreeware.com

论坛徽章:
0
3 [报告]
发表于 2003-06-10 11:42 |只看该作者

请问在Unix上如何安装gcc-3.3?

gcc,SUN有编译好的软件包,下载后用pkgadd -d 安装
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP