系统相关
首页 > 系统相关> > 在Ubuntu16上做Helib编译

在Ubuntu16上做Helib编译

作者:互联网

1. 编译安装【NTL】

	sudo apt-getinstall m4

下载gmp并解压,进入gmp-xx目录
./configure
make
make check
sudo make install
ls /usr/local/include|grep gmp
ls /usr/local/lib|grep gmp
下载NTL解压,进入NTL-xx/src目录
./configure
make
make check
sudo make install
ls -la /usr/local/include|grep NTL
ls /usr/local/lib|grep ntl
参考:https://blog.csdn.net/corewith/article/details/50937206
1.1 GMP is a library for long integer arithmetic.
1.2 NTL is a high-performance, portable C++ library providing data structures and algorithms for arbitrary length integers; for vectors, matrices, and polynomials over the integers and over finite fields; and for arbitrary precision floating point arithmetic.

2. 编译安装[Armadillo]

sudo apt-get install libopenblas-dev liblapack-dev
下载armadillo并解压,进入armadillo-xx目录
cmake
make
sudo make install 参考:https://zhiqiang.org/coding/how-install-armadillo-on-ubuntu.html
2.1 Armadillo库 进行稀疏矩阵特征分解

3. 编译[Helib]

下载helib
git clone https://github.com/shaih/HElib.git
cd HElib/src
make 参考:https://pwnhome.wordpress.com/category/helib/

标签:make,sudo,Helib,编译,NTL,install,Ubuntu16,gmp,ls
来源: https://blog.csdn.net/weixin_43485869/article/details/90209895