dkaban

Untitled

Nov 27th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. NAME=$(uname -s)
  4. echo set prerequisites for ${NAME} platform ...
  5.  
  6. if [ $NAME == "Darwin" ]; then
  7.     if [ ! -f /usr/local/bin/brew ]; then
  8.         echo install brew ...
  9.         /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  10.     fi
  11.     brew tap homebrew/science && brew update
  12.     brew install git python cmake automake autoconf libtool
  13.     brew install  jpeg libpng libtiff  eigen
  14.     brew cleanup && brew prune
  15. fi
  16.  
  17. if [ $NAME == "Linux" ]; then
  18.     sudo apt-get install -y build-essential gcc g++ cmake git pkg-config python-dev python-numpy
  19.     sudo apt-get install -y devscripts lintian dh-make
  20.     sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
  21.     sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev
  22. fi
Add Comment
Please, Sign In to add comment