6

I'm trying to install postgis using my existent version of postgresql.

I tried doing: brew install postgis. But I'm getting the following error trying run create extension postgis; query

PG::UndefinedFile: ERROR: could not open extension control file "/opt/boxen/homebrew/Cellar/postgresql/9.3.2-boxen/share/postgresql/extension/postgis.control": No such file or directory

This is happening because brew is installing a fresh version of postgresql. When I inspect on the new postgres path I can find the missing postgis.control file.

So, the question is: how can I force postgis to use my existent postgresql installation?

(I'm using boxen, so It's not an option remove my actual postgres installation)

Aaron
52k30 gold badges161 silver badges326 bronze badges
asked Sep 9, 2014 at 15:26
2
  • kyngchaos.com/software/postgres is the best and quickest method Commented Sep 9, 2014 at 20:06
  • @Mapperz it didn't work. The installer requires version 9.3 exactly. I'm not be able to do downgrade to that version. Commented Sep 20, 2014 at 22:26

2 Answers 2

1

I had to compile postgis from source. I made a gist that solve the problem...

answered Sep 20, 2014 at 22:45
1

I was able to install PostGIS on OSX an old Postgres version without upgrading or manual compilation using Pex:

git clone git://github.com/petere/pex.git cd pex sudo make install pex init pex install postgis psql CREATE EXTENSION postgis;

answered Apr 27, 2017 at 13:48

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.