blob: 3e2fa7eb5ddef54bac3fd8c099234c11262d409c [file] [log] [blame]
Junxiao Shi439d9722015-03-20 15:08:44 -07001#!/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 set -x
9 brew update
10 brew upgrade
Alexander Afanasyev8a3081f2015-08-31 13:27:15 -070011 brew install boost pkg-config cryptopp
Junxiao Shi439d9722015-03-20 15:08:44 -070012 brew cleanup
13fi
14
15if has Ubuntu $NODE_LABELS; then
16 BOOST_PKG=libboost-all-dev
17 if has Ubuntu-12.04 $NODE_LABELS; then
18 BOOST_PKG=libboost1.48-all-dev
19 fi
20
21 set -x
22 sudo apt-get update -qq -y
23 sudo apt-get -qq -y install build-essential pkg-config $BOOST_PKG \
Junxiao Shi2222a612015-06-06 08:01:38 -070024 libcrypto++-dev libsqlite3-dev libpcap-dev
Junxiao Shi439d9722015-03-20 15:08:44 -070025fi