ubuntu10.04安装GMP6.0.0

来源:互联网 发布:javascript 资源 网盘 编辑:程序博客网 时间:2024/05/02 02:14

最近,项目需要在发行版10.04的Ubuntu下使用GMP高精度数学库,发现该发行版Ubuntu是不包含GMP库的,只能自己到官网上下载安装。

1、下载最新GMP库

官网地址:https://gmplib.org/

下载 gmp-6.0.0a.tar.bz2,解压

2、安装GMP

编译准备

./configure --prefix=/usr \--enable-cxx \--disable-static \--docdir=/usr/share/doc/gmp-6.0.0a

编译包和生成HTML文档

makemake html<pre name="code" class="plain">make check



安装包和相关文档

make installmake install-html

(安装参考:http://www.linuxfromscratch.org/lfs/view/development/chapter06/gmp.html)

0 0
原创粉丝点击