blob: d6611220543be1a827293844227569078b6b8e80 [file] [log] [blame]
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07001#!/usr/bin/env bash
Vince Lehman0a7da612014-10-29 14:39:29 -05002set -e
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07003
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -07004JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07006
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -07007if has OSX $NODE_LABELS && ! has OSX-10.8-c++11-64bit $NODE_LABELS; then
8 # OSX 10.8 requires special handling of dependencies
9 set -x
10 brew update
11 brew upgrade
Vince Lehman52493c72015-04-30 10:21:53 -050012 brew install boost pkg-config sqlite cryptopp log4cxx protobuf openssl
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070013 brew cleanup
14fi
15
16if has Ubuntu $NODE_LABELS; then
17 BOOST_PKG=libboost-all-dev
18 if has Ubuntu-12.04 $NODE_LABELS; then
19 BOOST_PKG=libboost1.48-all-dev
20 fi
21
22 set -x
23 sudo apt-get update -qq -y
24 sudo apt-get -qq -y install build-essential pkg-config $BOOST_PKG \
25 libcrypto++-dev libsqlite3-dev \
Vince Lehman52493c72015-04-30 10:21:53 -050026 liblog4cxx10-dev protobuf-compiler libprotobuf-dev libssl-dev
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070027fi