2014-06-20 84 views
7

我正在尝试安装GCC 4.9.0,出现'./configure'和'make'错误。GCC安装错误

我得到了以下错误./configure

checking for default BUILD_CONFIG... bootstrap-debug 
checking for --enable-vtable-verify... no 
/usr/bin/ld: crt1.o: No such file: No such file or directory 
collect2: ld returned 1 exit status 
configure: error: I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib. 

然后我用./configure --disable-multilib然后配置与出任何错误完成。

'make'后;我结束与下面的错误,我无法确定这是什么错误

checking for suffix of object files... configure: error: in `/root/dsk/gcc-4.9.0/x86_64-unknown-linux-gnu/libgcc': 
configure: error: cannot compute suffix of object files: cannot compile 
See `config.log' for more details. 
make[2]: *** [configure-stage1-target-libgcc] Error 1 
make[2]: Leaving directory `/root/dsk/gcc-4.9.0' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/root/dsk/gcc-4.9.0' 
make: *** [all] Error 2 

请帮助

+0

您是否尝试以下链接的建议:https://gcc.gnu.org/wiki/FAQ#configure_suffix?什么是在config.log中? –

+0

避免在其源代码树中构建GCC。 –

+0

即使从相对路径构建后也会重复出现相同的错误../configure – user3690763

回答

5

看来你缺少的gcc-multilib的。

尝试使用sudo apt-get install gcc-multilib安装它,然后再次运行./configure

0

为CentOS您需要安装以下库:

sudo yum install glibc-devel.i686 
sudo yum install libgcc.i686 
相关问题