当前位置: 代码迷 >> Ruby/Rails >> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+
  详细解决方案

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

热度:498   发布时间:2016-04-29 02:13:41.0
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.

使用yum update gcc只能更新到gcc-4.4.7-11.el6.x86_64
下载了更高版本的GCC
http://mirror.hust.edu.cn/gnu/gcc/gcc-4.8.4/
配置时出现以下错误:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.

解决办法:
下载安装缺少的依赖项
下载地址:
http://www.multiprecision.org/index.php?prog=mpc&page=download

可选的直接下载地址:
https://gmplib.org/download/gmp/gmp-6.0.0a.tar.lz
https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
ftp://gnu.mirror.iweb.com/gmp/gmp-4.2.3.tar.gz
http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.xz
http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz
ftp://gnu.mirror.iweb.com/mpc/mpc-1.0.1.tar.gz
ftp://gnu.mirror.iweb.com/gmp/gmp-4.3.2.tar.gz

安装文档:
https://gmplib.org/manual/Installing-GMP.html#Installing-GMP
http://www.mpfr.org/mpfr-current/mpfr.html#Installing-MPFR

  相关解决方案