美文网首页
Linux GMP源码安装

Linux GMP源码安装

作者: 是阿离 | 来源:发表于2017-11-03 16:16 被阅读0次

问题

安装gcc-4.4.7时报GMP找不到
官网下载源码安装

过程

1、官网下载最新版gmp-6.1.2.tar.bz2
GMP官网下面Download the latest release of GMP中选择下载
2、上传到Linux主机,解压

tar -jxvf gmp-6.1.2.tar.bz2

3、编译安装
gmp-6.1.0同一级建立一个gmp-6.1.0-obj,进入gmp-6.1.0-obj

../gmp-6.1.0/configure --prefix=/user/gmp-6.1.0/gmp-6.1.0-obj --build=x86_64-linux
configure执行结果.png

gmp-6.1.0-obj中再执行:

make
make check
make install

TIPS

  • --build=x86_64-linux为主机版本,可通过uname -a查看

参考资料

gmp4.3.2 装配 configure: error: could not find a working compiler

相关文章

网友评论

      本文标题:Linux GMP源码安装

      本文链接:https://www.haomeiwen.com/subject/apmtmxtx.html