-
Notifications
You must be signed in to change notification settings - Fork 1
/
prepare-env.sh
executable file
·35 lines (25 loc) · 1.17 KB
/
prepare-env.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
#!/usr/bin/env bash
# common updates
apt-get update -y
apt-get install -y software-properties-common
apt-get update -y
apt-get install -y apt-utils
apt-get dist-upgrade -y
add-apt-repository -y http://security.ubuntu.com/ubuntu/
add-apt-repository -y ppa:jonathonf/gcc-9.0
apt-get update -y
apt-get dist-upgrade -y
# install development dependencies
apt-get install -y g++ gcc-9 g++-9 make libicu-dev libbz2-dev wget libssl-dev libcurl4 libcurl4-openssl-dev clang docker.io iproute2 libjsonrpccpp-dev libjsonrpccpp-tools
BOOST_GENERATION=1
BOOST_MAJOR_VERSION=71
BOOST_MINOR_VERSION=0
wget -O boost_${BOOST_GENERATION}_${BOOST_MAJOR_VERSION}_${BOOST_MINOR_VERSION}.tar.gz \
https://dl.bintray.com/boostorg/release/${BOOST_GENERATION}.${BOOST_MAJOR_VERSION}.${BOOST_MINOR_VERSION}/source/boost_${BOOST_GENERATION}_${BOOST_MAJOR_VERSION}_${BOOST_MINOR_VERSION}.tar.gz
tar xzvf boost_${BOOST_GENERATION}_${BOOST_MAJOR_VERSION}_${BOOST_MINOR_VERSION}.tar.gz
cd boost_${BOOST_GENERATION}_${BOOST_MAJOR_VERSION}_${BOOST_MINOR_VERSION}/ || exit 1
./bootstrap.sh --prefix=/usr/
./b2
./b2 install
# clean garbage
rm -rf boost_${BOOST_GENERATION}_${BOOST_MAJOR_VERSION}_${BOOST_MINOR_VERSION}*