Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
| 7 | if 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 Afanasyev | 6707966 | 2016-06-15 12:35:45 -0700 | [diff] [blame] | 15 | brew install boost pkg-config cryptopp openssl $EXTRA_FLAGS |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 16 | brew cleanup |
| 17 | fi |
| 18 | |
| 19 | if has Ubuntu $NODE_LABELS; then |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 20 | set -x |
Davide Pesavento | cc7bee7 | 2016-04-22 02:21:13 +0200 | [diff] [blame] | 21 | sudo apt-get -qq update |
| 22 | sudo apt-get -qq install build-essential pkg-config libboost-all-dev \ |
Davide Pesavento | 231ddd7 | 2016-09-02 22:20:00 +0000 | [diff] [blame] | 23 | libcrypto++-dev libsqlite3-dev libssl-dev \ |
| 24 | libpcap-dev |
Alexander Afanasyev | b81cff9 | 2015-07-09 09:45:09 +0800 | [diff] [blame] | 25 | fi |