安装GMP 和 MPFR
来源:互联网 发布:上海巨人网络客服电话 编辑:程序博客网 时间:2024/05/07 00:29
先安装GMP, 在安装MPFR
下载 gmp-5.0.5.tar.bz2 包
解压.tar.bz2 包: bzip2 -d gmp-5.0.5.tar.bz2 解压完会出现一个文件 gmp-5.0.5.tar
解压.tar 包:tar -xvf gmp-5.0.5.tar 解压完会出现一个文件 gmp-5.0.5
安装gmp
进入到gmp-5.0.5目录下: cd gmp-5.0.5
开始编译
执行命令: ./configure 执行完之后
执行命令: make 执行完之后
执行命令:make check 作用是 查看配置文件是否缺失,是否有Error之类的提示。如果没有,开始安装过程
开始安装
执行命令: make install
有必要说明程序的头文件(.h)和库文件(lib*)的位置,本次安装会安装在 /usr/local/include 和 /usr/local/lib . 这个对后面安装mpfr很有作用.
下载 mpfr-3.1.0.tar.gz 包
解压.tar.gz 包:tar -zxvf mpfr-3.1.0.tar.gz 解压完会出现一个文件 mpfr-3.1.0
安装gmp
进入到mpfr-3.1.0 目录下: cd mpfr-3.1.0
安装补丁: patch -N -Z -p1 < mpfr-3.1.0.patch 补丁可以在http://www.mpfr.org/mpfr-current/allpatches 找到
开始编译
执行命令:
./configure --prefix=/usr \ --enable-thread-safe \ --docdir=/usr/share/doc/mpfr-3.1.0编译过程中 出现如下警告:
configure: WARNING: ==========================================================
configure: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or
configure: WARNING: we cannot run a program linked with GMP (if you cannot
configure: WARNING: see the version numbers above). A cause may be different
configure: WARNING: GMP versions with different ABI's or the use of --with-gmp
configure: WARNING: or --with-gmp-include with a system include directory
configure: WARNING: (such as /usr/include or /usr/local/include).
configure: WARNING: However since we can't use 'libtool' inside the configure,
configure: WARNING: we can't be sure. See 'config.log' for details.
configure: WARNING: ==========================================================
原因是在执行 ./configure 时 没有添加 --with-gmp-include 而造成的
重新执行命令: ./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib
警告消除
执行命令: make 执行完之后
执行命令:make check 作用是 查看配置文件是否缺失,是否有Error之类的提示。如果没有,开始安装过程
开始安装
执行命令: make install
- 安装MPFR和GMP
- 安装GMP 和 MPFR
- 安装MPFR和GMP
- gcc mpc mpfr gmp源码包安装
- RHEL4.0AS GCC升级到4.3.3版本安装MPFR和GMP过程
- 在VS2005下编译CGAL库的支持库GMP和MPFR的步骤
- CGAL找不到"gmp-vc90-mt-gd.lib"和"mpfr-vc90-mt-gd.lib"
- 安装gcc必须三个库///configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
- RHEL5.4 x86_64 GCC 4.1.2 升级到4.7.0版过程(含安装MPFR、GMP、MPC过程)
- GCC源码安装出错error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0
- Ubuntu下安装和使用GMP
- GMP和NTL库安装教程
- 关于编译MPFR遇到的GMP版本问题
- ubuntu10.4下安装和使用GMP高精度数学库
- ubuntu10.4下安装和使用GMP高精度数学库
- centos 手动安装gmp
- php gmp扩展安装
- GCC编译出错Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
- poj 2255 Tree Recovery解题报告
- 11.1线程 Callable和Future
- 抓包、
- CSDN积分规则详解
- 11.2线程 任务执行架构
- 安装GMP 和 MPFR
- ini 文件读取
- 通用存储过程
- 11.3线程 锁Lock
- 【Objective-c算法】 A*自动寻路算法
- Manually using Bluetooth
- 如何将Metro 程序需要的文件加入到app运行目录(AppX文件夹中)
- Activity的taskAffinity属性
- C/C++ 各种字符编码字符串的转换 可用于XML文件的字符转化读写 (收集 GBK - UTF8 - Unicode - ANSI )