linux gcc 缺少 libmpfr.so,构建GCC 4.6 - libmpfr.so.4 - 无法打开共享对象文件

我正在尝试在CentOS 5.5版(最终版)下构建GCC 4.6 . 我刚刚构建了GMP-5.0.1,MPC-0.9和MPFR-3.0.1,并使用了以下configure命令:

../configure --prefix=/users/xxxx/apps/mygcc4.6 --disable-checking --enable-threads=posix --enable-languages=c,c++,fortran --with-mpfr=/users/xxxx/code/gcc/mpfr-3.0.1-install-cyprus --with-gmp=/users/xxxx/code/gcc/gmp-5.0.1-install-cyprus --with-mpc=/users/xxxx/code/gcc/mpc-0.9-install-cyprus

在此之后,我运行make并在大约5分钟后得到以下错误消息:

checking for suffix of object files... configure: error: in /users/xxxx/code/gcc/gcc-4.6.0/obj/x86_64-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile Seeconfig.log' for more details.

config.log表示涉及最近生成的程序(cc1):

/users/xxxx/code/gcc/gcc-4.6.0/obj/./gcc/cc1

事实上,如果我在没有参数的情况下运行此程序,我会在config.log中找到相同的错误消息:

error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

但是,libmpfr.so.4位于提供的lib子目录中,使用--with-mpfr标志进行配置,如上所示 . 我有LD_LIBRARY_PATH和LIBRARY_PATH为空 . 知道如何通过这个错误吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值