Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So the context

  1. Django1.4.x doesn't support postgis2.0 (https://code.djangoproject.com/ticket/16455)
  2. Postgres9.2x doesnt support postgis1.5 (http://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS)

So to get the 3 playing together nicely, I have to go django1.4 with postgis1.5 and postgres9.1x.

The problem is, installing postgis15

$ brew tap homebrew/versions
$ brew install postgis15

tries firstly to install postgres9.2.1 as a dependency which I dont want. In anycase, I still get the following error

nai@nyc ~  $ brew install postgis15
==> Downloading http://postgis.refractions.net/download/postgis-1.5.3.tar.gz
Already downloaded: /Users/nai/Library/Caches/Homebrew/postgis15-1.5.3.tar.gz
==> ./configure --with-projdir=/usr/local --with-pgconfig=/usr/local/Cellar/postgresql/9.2.1/bin/pg_config
==> make
                num2_tuples = reltup->reltuples;
                              ^
4 errors generated.
make[1]: *** [lwgeom_estimate.o] Error 1
make: *** [postgis] Error 2

Im completely stuck as to how to get those versions working together nicely using brew!

share|improve this question

closed as off topic by SvW, rnxrx, Ward, Michael Hampton, Scott Pack Oct 1 '12 at 16:52

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1



One solution is to install through the official postgresql installation package:

1) Go to http://www.enterprisedb.com/products-services-training/pgdownload#osx
2) Download the version 9.1.6 of postgresql
3) After the installation, run the Stack Builder
4) Stack Builder: select your postgresql installation and click next
5) Select Categories -> Spatial Extensions -> PostGIS 1.5 for PostgreSQL 9.1 v1.5.3-1
6) Finish the installation.

Perhaps you have to uninstall your previous installation using homebrew.
Regards.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.