Skip to content

Instantly share code, notes, and snippets.

@kluzny
Forked from osxi/postgis.sh
Created February 11, 2016 21:13
Show Gist options
  • Save kluzny/7a27741751370b938cb6 to your computer and use it in GitHub Desktop.
Save kluzny/7a27741751370b938cb6 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