GCC 4.5.0 & GMP 5.0.1 的安装问题一例
来源:互联网 发布:天猫美工培训 编辑:程序博客网 时间:2024/06/10 21:03
自己的机器上Ub9.10自带gcc4.4.1版本,
前几天GCC 4.5.0 Release,想尝鲜一下,顺带用我们实验室的工具测试测试看看可能找出来错误。
下载解压之后./configure,报错,需要gmp 4.3.2 以上的版本。到gmp官网下载5.0.1版本下载安装。
安装完毕之后重新./configure,报错,找不到可用的cc编译器。
这个就把我搞糊涂了,查看config.log,发现cc1报错:
/usr/lib/gcc/i486-linux-gnu/4.4.1/cc1: /
error while loading shared libraries: libgmp.so.10: /
cannot open shared object file: No such file or directory
使用 find /usr -name 'libgmp.so.*'找到缺失的文件确实在/usr/local/lib之中,但是cc1找不到,这就奇怪了。
想着可能是gmp新版本跟gcc旧版本不兼容的问题?搜索之后找到了这个链接:
http://forum.osdev.org/viewtopic.php?f=1&p=172532
里面提到了library的路径问题,顺着提示 cat /etc/ld.so.conf ,发现 /usr/loal/lib 已经包含在了路径之中。
又使用 ldd 命令查看cc1:
$ldd /usr/lib/gcc/i486-linux-gnu/4.4/cc1
linux-gate.so.1 => (0x003b6000)
libmpfr.so.1 => /usr/local/lib/libmpfr.so.1 (0x00d27000)
libgmp.so.3 => /usr/local/lib/libgmp.so.3 (0x00ee6000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00110000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00981000)
/lib/ld-linux.so.2 (0x00f71000)
libgmp.so.10 => not found
- GCC 4.5.0 & GMP 5.0.1 的安装问题一例
- 安装gcc必须三个库///configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
- GCC源码安装出错error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- gcc mpc mpfr gmp源码包安装
- GCC编译出错Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
- gcc configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- gcc configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- 【转载】gcc configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- gcc configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
- RHEL4.0AS GCC升级到4.3.3版本安装MPFR和GMP过程
- RHEL5.4 x86_64 GCC 4.1.2 升级到4.7.0版过程(含安装MPFR、GMP、MPC过程)
- 安装gcc遇到的问题
- 安装MPFR和GMP
- 安装GMP 和 MPFR
- centos 手动安装gmp
- 安装MPFR和GMP
- php gmp扩展安装
- gmp 5.0.1 windows 下编译使用
- 试玩drizzle
- 关于连接的认识
- 网线
- 【算法】归并--实现归并排序非递归算法
- 误差、权值、偏差的变化情况
- GCC 4.5.0 & GMP 5.0.1 的安装问题一例
- Microsoft SQL Server 2005 整合、集成SP3方法
- 又听到“曾经的你”了,那个时候的许巍,真是神了。
- “无法找到运行搜索助理需要的一个文件”的解决办法
- 【算法】归并--C语言实现归并排序递归算法
- SQL Server 数据库移植后不能执行大数据量查询 解决方法
- 各种语言的Hello World程序
- ip地址分类
- The first blog page fo me