-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
32 lines (27 loc) · 815 Bytes
/
setup.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
#!/bin/bash
sudo apt-get update
sudo apt-get -y install g++
sudo apt-get -y install libssl-dev
sudo apt-get install -y build-essential autoconf libtool pkg-config
pushd ~
wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4.tar.gz
tar -xzvf cmake-3.18.4.tar.gz
pushd cmake-3.18.4
./bootstrap
make -j4
sudo make install
sudo ln -s /usr/local/bin/cmake /usr/bin/cmake
popd
sudo apt-get -y install clang
pushd SEAL_parallel
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSEAL_USE_INTEL_HEXL=ON -DBUILD_SHARED_LIBS=OFF -DSEAL_USE_MSGSL=OFF -DSEAL_USE_ZLIB=OFF -DSEAL_USE_ZSTD=OFF
cmake --build build
sudo cmake --install build
popd
git clone https://github.com/rpclib/rpclib.git
pushd rpclib
cmake .
make
sudo make install
popd
popd