kali2020安装gmpy2

0x00准备

配置下载源:详情见https://app.yinxiang.com/fx/da629ce0-891b-4503-9693-6d196d7f3db7

下载GMP,MPFR,MPC,gmpy。我已经打包成src的压缩包准备好了。

链接:https://pan.baidu.com/s/1YhgYjq-Loh5mU0K9cHls-w 
提取码:ef42

解压到/home目录。

进入/home/src目录

cd /home/src

0x01安装(按顺序来,因为我也不确定会不会发生什么错误)

安装M4

#先测试有没有m4
man m4
#没有的话就安装
apt-get install m4

安装pip

apt-get install python-dev

编译安装GMP---进入gmp-6.1.2目录

./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic
make && make check && make install

编译安装MPFR---进入mpfr-4.0.2目录

./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/static
make && make check && make install

编译安装MPC进入mpc-1.1.0目录

./configure --prefix=$HOME/static --enable-static --disable-shared --with-pic --with-gmp=$HOME/static --with-mpfr=$HOME/static
make && make check && make install

安装gmpy2----进入gmpy2-2.1.0a1目录

python setup.py build_ext --static-dir=$HOME/static install

然后就ok了!

参考链接

https://www.cnblogs.com/pcat/p/5746821.html

你可能感兴趣的:(kali2020安装gmpy2)