运维日志您现在的位置是:首页 > 博客日志 > 运维日志

configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.

<a href='mailto:'>微wx笑</a>的头像微wx笑 2022-05-02运维日志 2 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+.C9a无知

Try the --with-gmp, --with-mpfr and/or --with-mpc options to specifyC9a无知

their locations.  Source code for these libraries can be found atC9a无知

their respective hosting sites as well as atC9a无知

https://gcc.gnu.org/pub/gcc/infrastructure/.  See alsoC9a无知

http://gcc.gnu.org/install/prerequisites.html for additional info.  IfC9a无知

you obtained GMP, MPFR and/or MPC from a vendor distribution package,C9a无知

make sure that you have installed both the libraries and the headerC9a无知

files.  They may be located in separate packages.C9a无知


C9a无知


C9a无知

http://gcc.gnu.org/install/prerequisites.html C9a无知


C9a无知

一、版本太低,挨个下载,解压缩C9a无知

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


C9a无知

2、gmp编译C9a无知

C9a无知

cd gmp-6.2.1
./configure
make
make install


C9a无知

本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/service/2022-05-02/1176.html

很赞哦! () 有话说 ()

相关文章