Run the following commands from the Terminal in the given order:
1. brew install cmake autoconf automake libtool shtool gflags
2. xcode-select --install
3. git clone https://github.com/Huelse/SEAL-Python.git
4. cd SEAL-Python
5. pip3 install numpy pybind11
6. git submodule update --init --recursive
7. cd SEAL
8. cmake -S . -B build -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF -DCMAKE_C_COMPILER=/usr/local/Cellar/llvm/16.0.1/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/Cellar/llvm/16.0.1/bin/clang++
9. cmake --build build
10. cd ..
11. python3 setup.py build_ext -i
12. cp seal.*.so examples
13. cd examples
14. python3 4_bgv_basics.py
This guide installs SEAL-Python on macOS, the Python binding for Microsoft SEAL, by installing the build tools, cloning the project with its submodules, and building the wrapper. Microsoft SEAL is a homomorphic encryption library.
Homomorphic encryption lets you compute on encrypted data without decrypting it. The build prerequisites, CMake and the autotools, are the part that most often needs attention on macOS.
Comments
Post a Comment