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

Posted 算法真不会

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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+.
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
ftp://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.

解决:

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-3.1.4.tar.bz2

wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.0.3.tar.gz

tar -jxvf gmp-6.1.0.tar.bz2
cd gmp-6.1.0
./configure
make && make install

tar -jxvf mpfr-3.1.4.tar.bz2
cd mpfr-3.1.4
./configure
make && make install


tar -zxvf mpc-1.0.3.tar.gz
cd mpc-1.0.3
./configure
make && make install

以上是关于configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. 解决的主要内容,如果未能解决你的问题,请参考以下文章

checking ImageMagick MagickWand API configuration program... configure: error:

linux driver error ------ ERROR: Kernel configuration is invalid

configure: error: XML configuration could not be found

configure: error: mysql configure failed. Please check config.log for more information.

configure: error: invalid variable name: `-prefix'

configure: error: Jabber library not found