forked from YuraBakkar/Transcendence-Dynamic-Chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
28 lines (28 loc) · 1.18 KB
/
test.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
#/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "$0 must be run as root."
exit 1
fi
echo "Enter number of threads to compile (~1.5gb ram usage per thread)"
read thr
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
echo ""
echo "Please wait. Stopping nodes."
systemctl stop transcendenced*
sudo add-apt-repository universe -y
apt-get update
apt-get install -y git zip software-properties-common unzip build-essential libtool autotools-dev autoconf pkg-config libssl-dev libcrypto++-dev libevent-dev libminiupnpc-dev libgmp-dev libboost-all-dev devscripts libdb++-dev libsodium-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libcrypto++-dev libminiupnpc-dev qt5-default
add-apt-repository ppa:bitcoin/bitcoin -y
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev gcc-4.8 g++-4.8 -y --auto-remove
apt-get install libssl1.0-dev libzmq3-dev -y --auto-remove
git clone https://github.com/phoenixkonsole/transcendence.git
cd transcendence
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 200
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++4.8 200
make clean
./autogen.sh
./configure
make -j $thr
make install