还有人在吗?我又遇到了一个问题!!!!
我今天在编译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这个目录的时候,我是可以看到这动态库的,:
哪位兄弟姐姐们能给我点提示,一点提示就好,不耽误大家太多的时间,谢谢!!!!!