- brew install postgresql@11
- go to https://postgis.net/ and download 2.5.x
- extract
- cd into folder
- brew install proj pcre json-c
- use brew info proj / pcre / json-c to find the following directories
./configure --with-projdir=/usr/local/Cellar/proj/7.0.0 --with-jsondir=/usr/local/Cellar/json-c/0.13.1 --with-pcredir=/usr/local/Cellar/pcre/8.44
make
make install
I'm very grateful for these steps, thank you! FWIW, I also had to add a flag for protobuf:
--with-protobuf=/opt/homebrew/Cellar/protobuf-c/1.4.1_7/include
in the configure step. Then everything was golden.