我试图安装GCC 4.9.0,我得到了“./configure”和“make”的错误。
我遇到了./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
然后configuration完成,出现任何错误。
'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
请帮忙
看来你缺少gcc-multilib。
尝试安装与sudo apt-get install gcc-multilib
,然后再次运行./configure
。
对于Centos,您需要安装以下库:
sudo yum install glibc-devel.i686 sudo yum install libgcc.i686