需要安装的依赖有
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
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库
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
sudo apt-get install python-dev
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
PYTHON=python3 ./bootstrap.sh
source ./activate