blob: 5c6c0d52894876ce775c65fa01c9b4eccc0e8dd9 [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
Vince Lehmanaf909fc2016-01-11 12:26:59 -060013 brew link --force openssl
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070014 brew cleanup
15fi
16
17if has Ubuntu $NODE_LABELS; then
18 BOOST_PKG=libboost-all-dev
19 if has Ubuntu-12.04 $NODE_LABELS; then
20 BOOST_PKG=libboost1.48-all-dev
21 fi
22
23 set -x
24 sudo apt-get update -qq -y
25 sudo apt-get -qq -y install build-essential pkg-config $BOOST_PKG \
26 libcrypto++-dev libsqlite3-dev \
Vince Lehman52493c72015-04-30 10:21:53 -050027 liblog4cxx10-dev protobuf-compiler libprotobuf-dev libssl-dev
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070028fi