Skip to content

Instantly share code, notes, and snippets.

@om-henners
Created March 13, 2014 22:50
Show Gist options
  • Save om-henners/9538817 to your computer and use it in GitHub Desktop.
Save om-henners/9538817 to your computer and use it in GitHub Desktop.
Shell scripts to install a reasonable base for GIS work on OS X 10.9 Mavericks
#!/bin/bash
#This script reinstalls my python/GIS environment on Maverics
#install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
brew upgrade
#and now everything else
brew tap homebrew/dupes
brew install homebrew/dupes/tcl-tk
brew install gfortran
brew install python --with-brewed-openssl --with-brewed-tk
pip install numpy scipy matplotlib
rew install cairo fontconfig gettext glib icu4c jpeg libffi libtiff pixman proj
# Building boost from source means it gets compiled against homebrew Python
brew install boost --with-icu --with-mpi --without-single --HEAD
brew tap dakcarto/osgeo4mac
brew tap homebrew/science
brew install homebrew/science/arpack
brew install dakcarto/osgeo4mac/gdal --complete --enable-armadillo --enable-mb --enable-opencl --with-postgresql --enable-unsupported
# brew install dakcarto/osgeo4mac/gdal-filegdb #needs to download the library
brew install dakcarto/osgeo4mac/qgis-22 --enable-isolation --with-postgis --with-r #--with-saga-gis --with-orfeo --with-grass
brew install mapnik --with-cairo --with-gdal --with-postgresql
easy_install ipython[all]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment