首页 新闻 会员 周边 捐助

Cent0S 6.7 i686编译gcc-7.1.0的问题,求解?

0
悬赏园豆:30 [已关闭问题] 关闭于 2017-10-21 22:22

还有人在吗?我又遇到了一个问题!!!!

我今天在编译gcc-7.1.0源码的时候,我configure是这样写的:

./configure --prefix=/usr/local/gcc-7.1.0 \
--with-gmp=/usr/local/gmp-4.3.2 \
--with-mpfr=/usr/local/mpfr-2.4.2 \
--with-mpc=/usr/local/mpc-1.0.3 

~/.bash_profile配置文件,贴出一部分

复制代码
C_INCLUDE_PATH=/usr/local/gmp-4.3.2/include/:$C_INCLUDE_PATH    
C_INCLUDE_PATH=/usr/local/mpfr-2.4.2/include/:$C_INCLUDE_PATH    
C_INCLUDE_PATH=/usr/local/mpc-1.0.3/include/:$C_INCLUDE_PATH    
export C_INCLUDE_PATH

LIBRARY_PATH=/usr/local/gmp-4.3.2/lib/:$LIBRARY_PATH
LIBRARY_PATH=/usr/local/mpfr-2.4.2/lib/:$LIBRARY_PATH
LIBRARY_PATH=/usr/local/mpc-1.0.3/lib/:$LIBRARY_PATH
export LIBRARY_PATH

LD_LIBRARY_PATH=/usr/local/gmp-4.3.2/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr/local/mpfr-2.4.2/lib/:$LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr/local/mpc-1.0.3/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
复制代码

然后我使用source ~/.bash_profile命令使得该配置文件生效

但是当我make的时候,结果出现这样的错误

/usr/local/src/gcc-7.1.0/host-i686-pc-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory

我知道他的意思就是:找不到libmpc.so.3这个动态库,但是我进入/usr/loca/gmp-1.0.3这个目录的时候,我是可以看到这动态库的,:

哪位兄弟姐姐们能给我点提示,一点提示就好,不耽误大家太多的时间,谢谢!!!!!

CalvinLew的主页 CalvinLew | 初学一级 | 园豆:23
提问于:2017-10-20 19:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册