Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 2 | set -e |
| 3 | |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame^] | 4 | JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 5 | source "$JDIR"/util.sh |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 6 | |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame^] | 7 | if has OSX $NODE_LABELS; then |
| 8 | set -x |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 9 | brew update |
| 10 | brew upgrade |
| 11 | brew install boost cryptopp pkg-config libxml2 |
| 12 | brew link --force libxml2 |
| 13 | brew cleanup |
| 14 | fi |
| 15 | |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame^] | 16 | if has Ubuntu $NODE_LABELS; then |
| 17 | set -x |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 18 | sudo apt-get update -qq -y |
| 19 | sudo apt-get -qq -y install build-essential |
| 20 | sudo apt-get -qq -y install libssl-dev libsqlite3-dev libcrypto++-dev |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 21 | |
Yuanzhi Gao | dd516fe | 2015-04-23 04:18:24 -0700 | [diff] [blame^] | 22 | if has Ubuntu-12.04 $NODE_LABELS; then |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 23 | sudo apt-get install -qq -y python-software-properties |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 24 | sudo add-apt-repository -y ppa:boost-latest/ppa |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 25 | sudo apt-get update -qq -y |
| 26 | sudo apt-get install -qq -y libboost1.55-all-dev |
| 27 | sudo apt-get install -qq -y python-gnomedesktop |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 28 | else |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 29 | sudo apt-get install -qq -y libboost-all-dev |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 30 | fi |
| 31 | |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 32 | sudo apt-get install -qq -y python-dev python-pygraphviz python-kiwi |
| 33 | sudo apt-get install -qq -y python-pygoocanvas python-gnome2 |
| 34 | sudo apt-get install -qq -y python-rsvg ipython |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 35 | fi |