免费注册 查看新帖 |

Chinaunix

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

GCC升级问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-07 10:06 |只看该作者 |倒序浏览
现在版本为:gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)      我从网站下下了源码编译gcc-4.5.0  

执行./configure --prefix=/usr/gcc-4.5 --enable-languages=all --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --enable-libgomp后

Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.


之前先编译了mpfr-2.3.1 和 gmp-4.2.2

请大家指点下,不盛感激。

论坛徽章:
0
2 [报告]
发表于 2010-05-07 10:36 |只看该作者
本帖最后由 prolj 于 2010-05-07 10:41 编辑

mpfr-2.3.1 和 gmp-4.2.2 的 头文件 追加到路径里面,具体问题去这里问,我现在的工作重点在别的上面。

服务器: irc.ubuntu.com
房间: #hellogcc

IRC

论坛徽章:
0
3 [报告]
发表于 2010-05-07 13:11 |只看该作者
回复 1# shineshqw


    没有编译mpc?

论坛徽章:
0
4 [报告]
发表于 2010-05-13 22:43 |只看该作者
不可以yum 安装么

论坛徽章:
0
5 [报告]
发表于 2010-05-15 23:18 |只看该作者
远程用yum升级吧

论坛徽章:
2
摩羯座
日期:2013-10-10 14:29:04天蝎座
日期:2014-01-03 09:14:49
6 [报告]
发表于 2010-05-16 16:05 |只看该作者
从GCC 4.5开始,除了gmp,mpfr之外,还需要安装mpc库,并用--with-mpc指定。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP