当前位置: 首页 > 工具软件 > HElib > 使用案例 >

在Ubuntu16上做Helib编译

庄瀚玥
2023-12-01

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/

 类似资料: