1、版本太低,挨个下载,解压缩
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
2、gmp编译
cd gmp-6.2.1 ./configure --prefix=/root/software/gmp-6.2.1
make check
make install
3、mpfr编译
cd mpfr-4.1.0 ./configure --prefix=/root/software/mpfr-4.1.0 --with-gmp=/root/software/gmp-6.2.1
make make install
4、mpc编译
cd mpc-1.2.1 ./configure --prefix=/root/software/mpc-1.2.1 --with-gmp=/root/software/gmp-6.2.1 --with-mpfr=/root/software/mpfr-4.1.0
make -j 16 make install