-
Notifications
You must be signed in to change notification settings - Fork 6
/
build_libs.sh
executable file
·58 lines (52 loc) · 1.5 KB
/
build_libs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -exo pipefail
echo "Build HElib v2.2.2"
if [ ! -d "HElib/build" ] ; then
cd ./HElib
git reset --hard d7be6f0
mkdir -p build && cd build
cmake -DPACKAGE_BUILD=ON -DCMAKE_INSTALL_PREFIX=/opt/helib_install ..
make -j2
sudo make install
sudo ln -s /usr/local/lib/libntl.so.44 /usr/lib/libntl.so.44
cd ../..
else
echo "Found in cache"
fi
echo "Build PALISADE v1.11.9"
if [ ! -d "palisade-release/build" ] ; then
cd ./palisade-release
git reset --hard 3d1f9a3f
mkdir -p build && cd build
cmake ..
make -j2
sudo make install
sudo ln -s /usr/local/lib/libPALISADEcore.so.1 /usr/lib/libPALISADEcore.so.1
cd ../..
else
echo "Found in cache"
fi
echo "Build SEAL v4.1.1"
if [ ! -d "SEAL/build" ] ; then
cd ./SEAL
git reset --hard 206648d0e4634e5c61dcf9370676630268290b59
cmake -S . -B build
cmake --build build
sudo cmake --install build
cd ..
else
echo "Found in cache"
fi
echo "Build TFHE v1.0.1"
if [ ! -d "tfhe/build" ] ; then
cd ./tfhe
make -j2 && sudo make install
sudo ln -s /usr/local/lib/libtfhe-nayuki-avx.so /usr/lib/libtfhe-nayuki-avx.so
sudo ln -s /usr/local/lib/libtfhe-nayuki-portable.so /usr/lib/libtfhe-nayuki-portable.so
sudo ln -s /usr/local/lib/libtfhe-spqlios-avx.so /usr/lib/libtfhe-spqlios-avx.so
sudo ln -s /usr/local/lib/libtfhe-spqlios-fma.so /usr/lib/libtfhe-spqlios-fma.so
cd ..
else
echo "Found in cache"
fi
echo "Lattigo version is defined in src/Lattigo/go.mod"