Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 2 | set -e |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 3 | |
Alexander Afanasyev | 24ed83a | 2015-03-30 11:06:50 -0700 | [diff] [blame] | 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 6 | |
Alexander Afanasyev | 24ed83a | 2015-03-30 11:06:50 -0700 | [diff] [blame] | 7 | if 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 Gawande | 415676b | 2016-12-22 00:26:23 -0600 | [diff] [blame^] | 12 | brew install boost pkg-config sqlite cryptopp log4cxx openssl |
| 13 | brew link --force openssl log4cxx |
Alexander Afanasyev | 24ed83a | 2015-03-30 11:06:50 -0700 | [diff] [blame] | 14 | brew cleanup |
| 15 | fi |
| 16 | |
| 17 | if 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 Gawande | 415676b | 2016-12-22 00:26:23 -0600 | [diff] [blame^] | 27 | liblog4cxx10-dev libssl-dev |
Alexander Afanasyev | 24ed83a | 2015-03-30 11:06:50 -0700 | [diff] [blame] | 28 | fi |