Skip to content

Instantly share code, notes, and snippets.

@abloom
Created February 13, 2024 22:36
Show Gist options
  • Save abloom/7dc5ba580b438566efd315bda6f3c80d to your computer and use it in GitHub Desktop.
Save abloom/7dc5ba580b438566efd315bda6f3c80d to your computer and use it in GitHub Desktop.
sudo mkdir -p /opt/local
sudo chown "$USER":admin /opt/local
brew install postgresql@15 proj gettext protobuf-c json-c sfcgal pcre2 icu4c geos gdal
mkdir -p /opt/local/bin
ln -s `which postgres` /opt/local/bin/postgres
wget https://download.osgeo.org/postgis/source/postgis-3.4.2.tar.gz
tar -xzvf postgis-3.4.2.tar.gz
cd postgis-3.4.2
./configure --prefix=/opt/local --with-pgconfig=/opt/homebrew/opt/postgresql@15/bin/pg_config --with-projdir=/opt/homebrew/opt/proj --with-gettext=/opt/homebrew/opt/gettext --with-protobufdir=/opt/homebrew/opt/protobuf-c --with-jsondir=/opt/homebrew/opt/json-c --with-sfcgal=/opt/homebrew/opt/sfcgal/bin/sfcgal-config --with-pcredir=/opt/homebrew/opt/pcre --disable-nls
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment