configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
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
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.
http://gcc.gnu.org/install/prerequisites.html
一、版本太低,挨个下载,解压缩
wget http://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz tar -zxvf mpc-1.2.1.tar.gz wget http://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.gz tar -zxvf mpfr-4.1.0.tar.gz wget http://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.bz2 yum -y install bzip2 tar -xjf gmp-6.2.1.tar.bz2
cd gmp-6.2.1 ./configure make make install
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/service/2022-05-02/1176.html