Skip to content

maxmouchet/helib-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

HElib Quickstart

Minimal instructions for installing HElib and compiling the examples.
Adapted from HElib/INSTALL.md.

Dependencies

apt update
apt install cmake make m4 patchelf g++ git

Installation

git clone https://github.com/homenc/HElib.git
cd HElib/

mkdir build
cd build/

cmake -DPACKAGE_BUILD=ON ..
make -j8 # Adjust the desired number of jobs

# At the time of writing, `make install` was broken
# (copying to PREFIX/helib_pack instead of PREFIX).
sudo cp -r helib_pack/* /usr/local/
sudo ldconfig

Examples

# In HElib/
cd examples/binaryArith_example/
g++ -std=c++14 -I/usr/local/include/helib -L/usr/local/lib64 binaryArith_example.cpp \
  -lhelib -lntl -lpthread -o binaryArith_example
./binaryArith_example

cd examples/BGV_general_example/
g++ -std=c++14 -I/usr/local/include/helib -L/usr/local/lib64 BGV_general_example.cpp \
  -lhelib -lntl -lpthread -o BGV_general_example
./BGV_general_example

About

HElib Quickstart instructions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published