I am trying to add the PostGIS extension to PostgreSQL. My efforts to add it to my existing Postgres application failed, so I uninstalled and reinstalled it.
I used the EDB installer. Everything went fine with the install until I tried to add the PostGIS extension in Stack Builder. It was then that I got this error:
It was not possible to perform the
installation with administrator privileges
(status: 4294907289).
Please execute:
sudo/tmp/h6trHS/postgis-pg13-3.0.2-1.
osx.app/Contents/MacOS/osx-x86_64 —
mode text
as an alternative to achieve the
same effect
I tried entering that command into terminal and got the following response:
zsh: no such file or directory: sudo/tmp/h6trHS/postgis-pg13-3.0.2-1.
zsh: no such file or directory: osx.app/Contents/MacOS/osx-x86_64
I've uninstalled PostgreSQL and reinstalled it multiple times. I've tried downloading different versions of it (weirdly the 14.1 install failed every time I tried, so this is with 13.5), but that didn't work either.
Does anyone know how to fix?
I am nearly coding-illiterate.
My computer is a Macbook Pro.
Best Answer
Follow the instructions on the PostGIS website to download and install PostGIS for macosx. https://postgis.net/install/