blob: d50857c364f86849b9aba1f451cb9e745f151d48 [file] [log] [blame]
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
7if has OSX $NODE_LABELS; then
8 if has OSX-10.8 $NODE_LABELS; then
9 EXTRA_FLAGS=--c++11
10 fi
11
12 set -x
13 brew update
14 brew upgrade
15 brew install boost pkg-config cryptopp $EXTRA_FLAGS
Alexander Afanasyev8e998e42016-05-18 13:55:33 -070016 brew link --force openssl
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040017 brew cleanup
18fi
19
20if has Ubuntu $NODE_LABELS; then
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040021 set -x
Davide Pesaventoe11c8d82016-04-16 14:32:07 +020022 sudo apt-get -qq update
23 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
24 libcrypto++-dev libsqlite3-dev
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -040025fi