- 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 am trying to install PostGis 2.5 onto Postgrsql@11 on Mac and I can't.
I did what you wrote here but I am not sure what you mean by the last line:
"use brew info proj / pcre / json-c to find the following directories"
If I run the "./configure...." line, I get the following error:
configure: error: the --with-projdir directory "/usr/local/Cellar/proj/7.0.0" cannot be found
Can you help me please?