Last active
September 29, 2021 18:55
-
-
Save fmalina/4b0dc3e0e86dc786a18705eae73d01b5 to your computer and use it in GitHub Desktop.
Setup of GIS libs for geodjango from source for older OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup of GIS libs from source for *NIX (older OS X) | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Sometimes package manager can't do | |
# e.g. Homebrew is broken for older OS X even High Sierra, so this is handy | |
# | |
# Warning: brew uninstalling your older but working brew packages on older OS X | |
# can get you in a situation where you won't be able to brew install them again!! | |
# | |
# https://docs.djangoproject.com/en/3.2/ref/contrib/gis/install/geolibs/ | |
# Install PostGIS | |
wget https://download.osgeo.org/postgis/source/postgis-3.1.4.tar.gz | |
tar xvzf postgis-3.1.4.tar.gz | |
cd postgis-3.1.4 | |
./configure --without-protobuf --with-pgconfig=/usr/local/Cellar/postgresql/13.4/bin/pg_config | |
make | |
make install | |
# GEOS | |
wget https://download.osgeo.org/geos/geos-3.9.0.tar.bz2 | |
tar xjf geos-3.9.0.tar.bz2 | |
cd geos-3.9.0 | |
./configure | |
make | |
sudo make install | |
cd .. | |
# PROJ | |
wget https://download.osgeo.org/proj/proj-8.1.0.tar.gz | |
wget https://download.osgeo.org/proj/proj-data-1.7.tar.gz | |
tar xzf proj-8.1.0.tar.gz | |
cd proj-8.1.0/data/ | |
tar xzf ../../proj-data-1.7.tar.gz | |
cd .. | |
./configure | |
make | |
sudo make install | |
cd .. | |
# GDAL | |
wget https://download.osgeo.org/gdal/CURRENT/gdal-3.3.2.tar.gz | |
tar xzf gdal-3.3.2.tar.gz | |
cd gdal-3.3.2 | |
./configure | |
make | |
sudo make install | |
cd .. | |
# cleanup after install | |
rm -rf geos-3.9* proj-8.1* gdal-3.3* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment