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 760 forks source link

2.0.0 fails to find ntl: file STRINGS file "/usr/local/include/version.h" cannot be read #420

Closed yurivict closed 3 years ago

yurivict commented 3 years ago
CMake Error at cmake/FindNTL.cmake:67 (file):
  file STRINGS file "/usr/local/include/version.h" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:261 (find_package)

CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  NTL required dynamic shared library has not been found.  (Try cmake
  -DNTL_DIR=<NTL-root-path>).: Found unsuitable version "WRONG VERSION
  ENCODING", but required is at least "11.0.0" (found
  /usr/local/lib/libntl.so)
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:580 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindNTL.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:261 (find_package)

-- Configuring incomplete, errors occurred!

ntl-11.4.3 installs /usr/local/include/NTL/version.h, not /usr/local/include/version.h.

yurivict commented 3 years ago

Previous versions found NTL w/out problems.

faberga commented 3 years ago

@yurivict The file "cmake/FindNTL.cmake" has not changed since HElib v1.0.2 of 9 months ago. The search path for NTL version file should resolve to "/usr/local/include/NTL/version.h" .

Can you provide the exact instruction to reproduce the problem you experienced, pls? Thanks

yurivict commented 3 years ago

I can't reproduce this now with 2.1.0