Skip to content

Instantly share code, notes, and snippets.

@osxi
Created February 5, 2016 19:00
Show Gist options
  • Save osxi/ea0c6bb8c47c25ffe464 to your computer and use it in GitHub Desktop.
Save osxi/ea0c6bb8c47c25ffe464 to your computer and use it in GitHub Desktop.
Installing postgis from source on OS X because I have to use Postgres 9.4
# Adjust paths/versions as necessary (this was just my experience)
wget http://download.osgeo.org/postgis/source/postgis-2.2.1.tar.gz
tar zxvf postgis-2.2.1.tar.gz
cd postgis-2.2.1
./configure --with-pgconfig=/usr/local/bin/pg_config --with-geosconfig=/usr/local/Cellar/geos/3.5.0/bin/geos-config --with-projdir=/usr/local/Cellar/proj/4.9.2
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment