Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 2 | set -e |
| 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
Alexander Afanasyev | 867228e | 2016-10-17 16:54:55 -0700 | [diff] [blame] | 7 | set -x |
Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 8 | |
| 9 | if has OSX $NODE_LABELS; then |
| 10 | brew update |
| 11 | brew upgrade |
Alexander Afanasyev | 867228e | 2016-10-17 16:54:55 -0700 | [diff] [blame] | 12 | brew install boost pkg-config cryptopp openssl |
Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 13 | brew cleanup |
| 14 | fi |
| 15 | |
| 16 | if has Ubuntu $NODE_LABELS; then |
Alexander Afanasyev | 867228e | 2016-10-17 16:54:55 -0700 | [diff] [blame] | 17 | sudo apt-get -qq update |
| 18 | sudo apt-get -qq install build-essential pkg-config libboost-all-dev \ |
| 19 | libcrypto++-dev libsqlite3-dev libssl-dev \ |
| 20 | libpcap-dev |
Yingdi Yu | da495a9 | 2015-05-05 13:57:59 -0700 | [diff] [blame] | 21 | fi |