RHEL5上升级GCC遇到的问题,gcc4.4.2 gcc4.4.3 错误
2010-03-30 15:13
253 查看
【转帖请注明出处:blog.csdn.net/lanmanck】
1、安装4.4.x需要2个库:GMP和MPFR,搜一下,有下载。
默认configure,默认make install
2、gcc4.4.x用默认的configure,结果make出来错误:
undefined
reference to `mpfr_j0'
undefined
reference to `mpfr_j1'
。。。
undefined
reference to `mpfr_jn'
解决方法:
1>在configure的时候指定gmp和mpfr的路径
2>更改makefile,HOST-GMPLIBS =
-lmpfr -lgmp 改成HOST-GMPLIBS = -L/usr/local/lib -lmpfr -lgmp
第二步需要make distclean,configure,改makefile,然后重新make。
3、又遇到错误:
checking for suffix of object files... configure: error: cannot compute
suffix of object files:cannot compile
See 'config.log' for more details.
哎,开源的还真是麻烦。网上好像挺多这个问题,中文的博客没怎么说哦。
人家老外说了,configure的时候不会检查so文件路径,所以,解决方法是:
export LD_LIBRARY_PATH=/usr/local/lib
我的那2个库和动态链接文件均装到这个目录了。然后接着make即可!
4、继续错误,说fstats64之类的没定义,我靠,好像是libc有问题。这个升级非常麻烦,因为系统都要用到,搞不好就崩溃了。
反正我已经崩溃了,放弃吧~~~
1、安装4.4.x需要2个库:GMP和MPFR,搜一下,有下载。
默认configure,默认make install
2、gcc4.4.x用默认的configure,结果make出来错误:
undefined
reference to `mpfr_j0'
undefined
reference to `mpfr_j1'
。。。
undefined
reference to `mpfr_jn'
解决方法:
1>在configure的时候指定gmp和mpfr的路径
2>更改makefile,HOST-GMPLIBS =
-lmpfr -lgmp 改成HOST-GMPLIBS = -L/usr/local/lib -lmpfr -lgmp
第二步需要make distclean,configure,改makefile,然后重新make。
3、又遇到错误:
checking for suffix of object files... configure: error: cannot compute
suffix of object files:cannot compile
See 'config.log' for more details.
哎,开源的还真是麻烦。网上好像挺多这个问题,中文的博客没怎么说哦。
人家老外说了,configure的时候不会检查so文件路径,所以,解决方法是:
export LD_LIBRARY_PATH=/usr/local/lib
我的那2个库和动态链接文件均装到这个目录了。然后接着make即可!
4、继续错误,说fstats64之类的没定义,我靠,好像是libc有问题。这个升级非常麻烦,因为系统都要用到,搞不好就崩溃了。
反正我已经崩溃了,放弃吧~~~
相关文章推荐
- RedHat安装Tesseract方式以及遇到升级GCC时遇到的问题和解决办法
- mysql数据库经常会报的错误 包括dede升级和其它CMS的升级遇到的问题
- gcc3.4编译2.6.31 内核编译 以及 遇到的问题和错误
- gcc3.4编译2.6.31 内核编译以及遇到的问题和错误
- centos升级gcc版本遇到的一些问题
- 升级gcc,glibc库途中遇到的各种问题
- 升级10.11后cocoa pods错误,重新安装遇到的问题
- VMware 打开虚拟机的时候提示 internal error 内部错误 遇到这个问题时我的解决方法
- 在Ubuntu上使用btrfs及在centos中升级内核遇到的一些问题
- Eclipse下Android更新升级过程中遇到的问题及解决
- android studio 3.0 升级 项目遇到的问题更改
- 解决RHEL5的libstdc++.so.5 补装问题。(rpm Header V3 DSA signature: NOKEY 错误解决)
- 在使用低版本的element-ui升级到element-ui 2.0的时候遇到的问题
- 下载的Word打开出现问题:word在试图打开时遇到错误
- 安装SQL Server 2008和将2008升级到2008 R2遇到的问题及解决办法
- Android开发错误——Android Studio中遇到过的错误问题与解决方案汇总
- QT项目升级(QT4.6.3到QT5.2)时,遇到的问题和解决方法
- Linux 下 pip 升级遇到的问题 python3.5 和安装 python pip
- 在Linux操作系统下,安装GI 12.1 或者升级到GI 12.1时遇到的问题
- win7升级win10完成后恢复win7遇到问题的解决方案