Hello 👋 Welcome to my corner of the internet. I write here about the different challenges I encounter, and the projects I work on. Find out more about me.
After again homebrew having updated a number of libraries and breaking my postgres/postgis install, I yet again had to compile a specific version of postgis against a pinned version of postgresql (auto-update is disabled.. yet 🤷). This serves a quick reference:
./configure --with-pgconfig=/usr/local/Cellar/postgresql@12/12.10_1/bin/pg_config --disable-nls --with-projdir=/usr/local/Cellar/proj@7/7.2.1
. See config docs. When the install step fails, that’s often with reference to specific libraries, which you can set using a flag to the ./configure
command.make install
SELECT postgis_extensions_upgrade()
. Then SELECT postgis_version()
should return the latest versionserver
directory from postgresql@12/include/postgresql/
to postgresql@12/include