简体   繁体   English

GCC安装错误

[英]GCC installation Error

I am trying to install GCC 4.9.0, I got following errors for './configure' and 'make'. 我正在尝试安装GCC 4.9.0,我收到了'./configure'和'make'的错误。

I got following error for ./configure 我收到了./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.

Then I used ./configure --disable-multilib then configure completed with out any error. 然后我使用./configure --disable-multilib然后配置完成而没有任何错误。

After 'make'; 'make'之后; i end with following error and i am not able to identify what is this error 我以跟随错误结束,我无法确定这个错误是什么

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

please help 请帮忙

It seems you are missing gcc-multilib. 看来你缺少gcc-multilib。

Try installing it with sudo apt-get install gcc-multilib and then run ./configure again. 尝试使用sudo apt-get install gcc-multilib安装它,然后再次运行./configure

For Centos you need to install following libraries: 对于Centos,您需要安装以下库:

sudo yum install glibc-devel.i686
sudo yum install libgcc.i686

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM