Chengyu Fan | 2788755 | 2015-03-26 17:12:00 -0600 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | |
| 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
| 6 | |
| 7 | if has OSX $NODE_LABELS; then |
| 8 | set -x |
| 9 | brew update |
| 10 | brew upgrade |
| 11 | brew install boost sqlite3 pkg-config mysql jsoncpp |
| 12 | brew cleanup |
| 13 | fi |
| 14 | |
| 15 | if 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 libssl-dev \ |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 24 | libcrypto++-dev libsqlite3-dev libmysqlclient-dev \ |
| 25 | libjsoncpp-dev protobuf-compiler libprotobuf-dev |
Chengyu Fan | 2788755 | 2015-03-26 17:12:00 -0600 | [diff] [blame] | 26 | fi |