gmp4.3.2 安装 configure: error: could not find a working compiler

在CentOS6.3上安装gcc4.7.2时遇到gmp配置失败的问题。错误原因是ABI设置与处理器类型不符。通过比较成功和失败的configure输出,发现关键在于ABI设置为32位,而系统可能是64位。解决方案是在配置gmp时添加参数`--build=x86_64-linux`,确保与系统类型匹配,从而成功完成编译。
摘要由CSDN通过智能技术生成
今天在虚拟机上想安装gcc4.7.2

但貌似有三个依赖。

那就顺序装吧。

装到gmp的时候。怎么都configure不过去,各种查各种不行,但是我之前在别的机器装成功过。

刚开始一直以为是某个编译程序没有装,后来仔细对比了通过的和不通过的。发现问题所在了。

如下:

这个是错误的。

checking build system type... pentiumm-unknown-linux-gnu
checking host system type... pentiumm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... yes
checking compiler gcc -O2 -pedantic -fomit-frame-pointer has sizeof(long)==4... no
checking compiler icc -no-gcc ... no
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值