Skip to content

Instantly share code, notes, and snippets.

View xurshid29's full-sized avatar

Khurshid Yalgashev xurshid29

View GitHub Profile
@xurshid29
xurshid29 / pex_install_postgis_workarounds.md
Created October 1, 2019 17:28 — forked from skissane/pex_install_postgis_workarounds.md
Solutions and workarounds for issues with "pex install postgis" (assuming macOS+Homebrew)

Problem: configure: error: could not find libxml2
Solution: sudo xcode-select -s /Library/Developer/CommandLineTools

Problem: configure: error: could not find geos-config within the current path. You may need to try re-running configure with a --with-geosconfig parameter
Solution: brew install geos

Problem: configure: error: could not find proj_api.h - you may need to specify the directory of a PROJ.4 installation using --with-projdir
Solution: brew install proj and then CFLAGS=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H pex install postgis

Problem: configure: error: gdal-config not found. Use --without-raster or try --with-gdalconfig=\