blob: 760b05797eb894734e31a90057404e305b801982 [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
Ashlesh Gawande415676b2016-12-22 00:26:23 -060012 brew install boost pkg-config sqlite cryptopp log4cxx openssl
13 brew link --force openssl log4cxx
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 \
Ashlesh Gawande415676b2016-12-22 00:26:23 -060027 liblog4cxx10-dev libssl-dev
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070028fi