国外网站比较慢,所以我会放上我下载的软件包。
1:
configure gcc,显示requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+。
2:
下载这三个文件。ftp://ftp.gnu.org/gnu/gmp 选择自己想要的版本。
其他同理。参考 http://www.multiprecision.org/mpc
http://ftp.gnu.org/gnu/mpfr
3:
安装GMP:直接./configure,make,make check,sudo make install
4:
安装MPFR:./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib ,
之后make顺利
make check显示有错,
问题如下:
[tversion] GMP: header 5.1.3, library 5.0.2
[tversion] MPFR tuning parameters from src/x86/core2/mparam.h
ERROR! The versions of gmp.h (5.1.3) and libgmp (5.0.2) do not match.
The possible causes are: