homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 761 forks source link

Doens't build on Ubuntu 18.04 #350

Closed giorgiozoppi closed 4 years ago

giorgiozoppi commented 4 years ago

Your Contact: Your environment (OS/HW): Ubuntu Detailed Description: It doesn't build out of the box 18.04 since the libntl-dev is not the required one. It will be nice to have a note about that in the readme CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): NTL required dynamic shared library has not been found. (Try cmake -DNTL_DIR=).: Found unsuitable version "10.5.0", but required is at least "11.0.0" (found /usr/lib/libntl.so) Call Stack (most recent call first): /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE) cmake/FindNTL.cmake:66 (find_package_handle_standard_args) CMakeLists.txt:165 (find_package) The following script will fix the problem. It will be nice to have in the repo so the user should not bother about dependencies.


!/bin/bash

cwd=$(pwd) wget https://www.shoup.net/ntl/ntl-11.4.3.tar.gz mkdir /tmp/ntl tar xfvz ntl-11.4.3.tar.gz -C /tmp/ntl cd /tmp/ntl/ntl-11.4.3/src ./configure SHARED=on make sudo make install cd $cwd rm -fr /tmp/ntl rm *.tar.gz


giorgiozoppi commented 4 years ago

Solved.