在Ubuntu16上做Helib编译

本文详细介绍如何在Ubuntu系统上从源代码编译安装高性能数学库NTL、Armadillo和Helib。NTL适用于任意长度整数运算,Armadillo擅长稀疏矩阵特征分解,Helib则为同态加密提供支持。文章提供了详细的步骤和参考链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.youkuaiyun.com/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/

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值