ubuntu20.04安装fpylll

需要安装的依赖有

fpylll relies on the following C/C++ libraries:
  • GMP or MPIR for arbitrary precision integer arithmetic.
  • MPFR for arbitrary precision floating point arithmetic.
  • QD for double double and quad double arithmetic (optional).
  • fplll for pretty much everything.
  • fpylll also relies on
Cython for linking Python and C/C++.
  • cysignals for signal handling such as interrupting C++ code.
  • py.test for testing Python.
  • flake8 for linting.
We also suggest
  • virtualenv to build and install fpylll in
  • IPython for interacting with Python
  • Numpy for numerical computations (e.g. with Gram-Schmidt values)

第一步:安装m4

sudo apt-get install m4 
sudo apt install libgmp-dev

第二步:安装mpir库

sudo apt-get install libtool #依赖包
sudo apt-get install yasm #依赖包
sudo apt-get install texinfo #依赖包
libtoolize --automake --copy --debug --force 
git clone https://github.com/wbhart/mpir.git#下载安装包
cd mpir #进入mpir目录
aclocal
autoconf
automake --add-missing
./configure
make
make check
sudo make install

第三步:安装mpfr库

sudo apt install libmpfr-dev
第四步:安装fpLLL库
git clone https://github.com/fplll/fplll.git
cd fplll
./autogen.sh
./configure
make && make check && sudo make install

第五步:安装QD包

sudo apt install libqd-dev

第六步:安装Cython库

pip install Cython

第七步:安装cysignals库

#python3
sudo pip3 install setuptools #安装依赖包
sudo pip3 install cython #安装依赖包
sudo pip3 install sphinx #安装依赖包
pip3 install cysignals
git clone https://github.com/sagemath/cysignals.git
cd cysignals
pip install -r requirements.txt #站桩requirements.txt中给的依赖
sudo apt-get install python-dev #python依赖
sudo python setup.py install --old-and-unmanageable

第八步:安装pytest库

pip install pytest

第九步:安装flake8库

pip install flake8

第十步:安装virtualenv库

pip install virtualenv
pip install virtualenvwrapper

第十一步:安装fpyLLL

sudo apt install autotools-dev #依赖包
git clone https://github.com/fplll/fpylll.git
#进入fplll文件夹
PYTHON=python3 ./bootstrap.sh
source ./activate

你可能感兴趣的:(密码学,python,pytest,virtualenv,pip,fpylll,密码学)