linux - GCC 安装错误

标签 linux gcc installation makefile

我正在尝试安装 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 然后配置完成,没有任何错误。

在“制作”之后;我以以下错误结束,我无法确定这个错误是什么

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

关于linux - GCC 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24325754/

相关文章:

Android:如何仅在安装应用程序时调用方法

linux - Linux命令行上的PDF比较

Linux 中的 C++ 线程

php - 从源代码编译 PHP 后还需要开发库吗?

c - 为什么在终端中直接使用 gcc 编译可以工作,而使用 make 文件则不行?

gcc - 如何在 x86 和 x86_64 上使用 Gcc 4.6.0 libquadmath 和 __float128

c - gcc `-shared` 选项如何影响输出?

android - Android 应用程序安装跟踪如何工作?

installation - 如何使用 Inno Setup 安装程序升级 MSI 安装?

linux - 在 PostgreSQL 函数中使用参数运行系统命令