2010-12-14

[问题]安装GCC遇到的Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+解决方法

configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ 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.
解决如下:
sudo apt-get install libgmp3-dev 解决 GMP 4.2+
sudo apt-get install libamd2.2.0 libblas3gf libgfortran3 libumfpack5.4.0 解决 MPFR 2.3.1+
sudo apt-get install mpc 解决 MPC 0.8.0+

本文地址:http://114er.blogspot.com/2010/12/%E9%97%AE%E9%A2%98%E5%AE%89%E8%A3%85gcc%E9%81%87%E5%88%B0%E7%9A%84building-gcc-requires-gmp-42.html
原创文章如转载,请注明链接: 转自Welcome Funny Guys

0 评论: