ubuntu14.04安装GMP6.1.2 ubuntu下安装gmp遇到 configure:error:no usable m4 in$path or /user/5bin解决方案

RSAtool

  • 安装

    git clone https://github.com/ius/rsatool.git
    cd rsatool
    python rsatool.py -h

需要先安装gmp,安装完gmp,之后安装gmpy

pip install gmpy -i https://pypi.tuna.tsinghua.edu.cn/simple

然后安装rsatool

--------------------------------------------------------------------------------------------------------------

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

1、下载最新GMP库

官网地址:https://launchpad.net/ubuntu/+source/gmp/

下载 gmp_6.1.2+dfsg.orig.tar.xz,解压

2、安装GMP

编译准备

[plain]  view plain  copy
  1. ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp-6.1.2

编译包和生成HTML文档

[plain]  view plain  copy
  1. make  
  2. make html  
  3. make check  
 
 



安装包和相关文档

[plain]  view plain  copy
  1. make install  
  2. make install-html  

ubuntu下安装gmp遇到 configure:error:no usable m4 in$path or /user/5bin解决方案

sudo apt-get install m4

猜你喜欢

转载自blog.csdn.net/shengerjianku/article/details/80721510