GCC编译源码出错:Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0

本文介绍了在编译GCC 4.6.2时遇到的问题及解决方法。GCC编译需要GMP 4.2+,MPFR 2.3.1+和MPC 0.8.0库。通过运行srcdir/configure命令从源代码外部配置,以避免源目录被修改。若编译失败,只需删除objdir重新开始。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

接上篇博客,因为上一篇博客没有解决实际问题,所以这次继续解决问题:

之前测试过gcc4.4.0版本,发现不适合这个方法(具体原因,后面会说)。

测试版本gcc4.6.2


See Installing GCC: Configuration for the full documentation. A major benefit of running srcdir/configure from outside the source directory (instead of running./configure) is that the source directory will not be modified in any way, so if your build fails or you want to re-configure and build again, you simply delete everything in the objdir and start again.

For example, configuring and building GCC 4.6.2 should be as simple as:

具体的命令如下:
前提你要下载gcc4.6.2版本,下载地址:https://bigsearcher.com/mirrors/gcc/releases/gcc-4.6.2/

tar xzf gcc-4.6.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值