Skip to content

Instantly share code, notes, and snippets.

@timofei7 timofei7/geog54_homebrew
Last active Jul 18, 2017

What would you like to do?
homebrew install software for GEOG54 (may need babysitting)
#install homebrew
# homebrew (from is an opensource software package manager for os x
# very much awesome
# installs into /usr/local so you may want to: mv /usr/local /usr/local.old beforehand
ruby -e "$(curl -fsSL"
# tap extra geog related formulas
brew tap dakcarto/osgeo4mac
brew tap homebrew/science
#setup python path (needed for some prereqs to work right)
echo "export PYTHONPATH=/usr/local/lib/python2.7/site-packages:\$PYTHONPATH" >> ~/.bashrc
source ~/.bashrc
#install some prereqs:
brew install gfortran python sip qscintilla2 pyqt cairo py2cairo postgresql libspatialite postgis
#some python libraries
/usr/local/bin/pip install scipy numpy psycopg2
#just in case
brew uninstall --force gdal
#install some geog stuffs:
brew install r
sudo ln -s "/usr/local/opt/r/R.framework" /Library/Frameworks/
brew install qgis-20
brew linkapps
brew install gdal --complete --with-postgresql
#now in RStudio you can use the brew installed r
#and: install.packages("rgdal", dep=TRUE, type="source")
#will build to use the brew installed gdal
# there may be some confusion with which version of R RStudio is using if previously installed via pkg
# see
# brew prompts when R is installed to link itself into the right place
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.