-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
30 lines (24 loc) · 1.38 KB
/
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
#!/bin/bash
sudo apt-get update \
&& sudo apt-get install -y build-essential cmake git wget libncurses5-dev libreadline-dev nettle-dev libgnutls28-dev libuv1-dev libcppunit-dev libjsoncpp-dev libasio-dev libssl-dev libstdc++6 \
&& sudo apt-get clean
wget https://github.com/msgpack/msgpack-c/releases/download/cpp-2.1.5/msgpack-2.1.5.tar.gz\
&& tar -xzf msgpack-2.1.5.tar.gz\
&& cd msgpack-2.1.5 && mkdir build && cd build\
&& cmake -DMSGPACK_CXX11=ON -DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=/usr ..\
&& make -j8 && make install && make clean\
&& cd ../.. && rm -rf msgpack-2.1.5 msgpack-2.1.5.tar.gz && cd
git clone https://github.com/msgpack/msgpack-c.git\
&& cd msgpack-c && cmake -DMSGPACK_CXX17=ON .\
&& make install && make clean && cd
git clone https://github.com/weidai11/cryptopp.git\
&& cd cryptopp && make dynamic && make install dynamic && make clean && cd
git clone https://github.com/ziscky/opendht.git\
&& cd opendht && git checkout -b "nopackettimeout"\
&& mkdir build && cd build\
&& cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_PYTHON=Off -DOPENDHT_LTO=On && make -j8 && make install && make clean\
&& cd
git clone https://github.com/ziscky/e-vote\
&& mkdir configs && cd e-vote && mkdir build && cd build\
&& cmake -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXTENSIONS=OFF -DCMAKE_CXX_COMPILER=/usr/bin/g++ ..\
&& cd /e-vote/ && cmake --build build --target install -- -j 4 && cd /