blob: 417d1a640bf2d8e6fbccad3a43cee0847a14f15c [file] [log] [blame]
Alexander Afanasyevb81cff92015-07-09 09:45:09 +08001#!/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
Alexander Afanasyev67079662016-06-15 12:35:45 -070015 brew install boost pkg-config cryptopp openssl $EXTRA_FLAGS
16 brew link --force openssl
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080017 brew cleanup
18fi
19
20if has Ubuntu $NODE_LABELS; then
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080021 set -x
Davide Pesaventocc7bee72016-04-22 02:21:13 +020022 sudo apt-get -qq update
23 sudo apt-get -qq install build-essential pkg-config libboost-all-dev \
Alexander Afanasyev67079662016-06-15 12:35:45 -070024 libcrypto++-dev libsqlite3-dev libpcap-dev \
25 libssl-dev
Alexander Afanasyevb81cff92015-07-09 09:45:09 +080026fi