Linux gcc升级全过程,过程超详细

checking for gnatmake… no

checking whether compiler driver understands Ada… no

checking how to compare bootstrapped objects… cmp --ignore-initial=16 f 1 f1 f1f2

checking for objdir… .libs

checking for the correct version of gmp.h… no

configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.

Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify

their locations. Source code for these libraries can be found at

their respective hosting sites as well as at

https://gcc.gnu.org/pub/gcc/infrastructure/. See also

http://gcc.gnu.org/install/prerequisites.html for additional info. If

you obtained GMP, MPFR and/or MPC from a vendor distribution package,

make sure that you have installed both the libraries and the header

files. They may be located in separate packages.

从日志总可以看出有如下报错,故下面每个都安装

configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.

[](()3.gmp安装


[root@jeames007 ~]# tar -vxf gmp-5.0.1.tar.bz2

[root@jeames007 ~]# cd gmp-5.0.1/

[root@jeames007 gmp-5.0.1]# ./configure --prefix=/usr/local/gmp-5.0.1

[root@jeames007 gmp-5.0.1]# make

[root@jeames007 gmp-5.0.1]# make install

make[4]: Leaving directory `/root/gmp-5.0.1’

make[3]:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值