什么';制定gcc 4.9.1时有何错误?

什么';制定gcc 4.9.1时有何错误?,gcc,makefile,installation,Gcc,Makefile,Installation,在最新的gcc 4.9.1包中,在./configure之后,我运行了make,失败并显示错误消息: checking for x86_64-unknown-linux-gnu-gcc... /root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/

在最新的gcc 4.9.1包中,在./configure之后,我运行了make,失败并显示错误消息:

checking for x86_64-unknown-linux-gnu-gcc... /root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/root/tar/gcc-4.9.1/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
我检查了x86_64-unknown-linux-gnu/libgcc/中的config.log,它说

configure:3389: /root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include    -o conftest -g -O2   conftest.c  >&5
/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
configure:3392: $? = 1
configure:3580: checking for suffix of object files
configure:3602: /root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include    -c -g -O2  conftest.c >&5
/root/tar/gcc-4.9.1/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
configure:3606: $? = 1
configure: failed program was:

但很明显,我在/usr/local/lib中有libmpc.so.2。有什么问题吗?

问题似乎是由于$LD\u LIBRARY\u path环境变量中没有包含默认路径/usr/local/lib。很抱歉提出了这个愚蠢的问题…

如果您认为某个问题对其他人没有用处,可以将其删除。