Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Does anyone know what apt packages one should install for a postgres(8.4)/postgis(1.5) django (1.4) client on ubuntu 12.04?

All recipes seem to assume that I want to install the full postgres/postgis database server on the machine, but I have a external database server so I only want the packages that can connect to that.

For a full server I use:

apt-get install binutils gdal-bin libproj-dev postgresql-8.4-postgis postgresql-server-dev-8.4 python-psycopg2 python-setuptools
share|improve this question
    
For django, dont forget virtualenv :) –  Ragi Yaser Burhum Nov 20 '12 at 15:37
add comment

1 Answer

up vote 2 down vote accepted

I've not tried it but try changing your apt-get to

apt-get install binutils gdal-bin libproj-dev postgresql-9.1-postgis postgresql-server-dev-9.1 python-psycopg2 python-setuptools

should do the trick. As its just the client its backwards compatible with older versions of postgresql.

postgresql-8.4-postgis is only available on lucid (10.04) the future releases (11.04) onwards use postgresql-9.1-postgis

http://packages.ubuntu.com/search?searchon=names&keywords=postgresql+postgis

EDIT:

apt-get install binutils gdal-bin libproj-dev postgis python-psycopg2 python-setuptools does the trick

share|improve this answer
    
Tried it, but postgresql-9.1-postgis also has postgresql-9.1 as an dependency. Is it possible to do this without that? –  RickyA Nov 20 '12 at 13:46
    
Thinking about it can't you just use python3-postgresql you shouldn't need any of the postgis stuff apart from on the server. –  Mark Davidson Nov 20 '12 at 13:50
    
Had a look if you just want the userland binaries, common files and documentation for postgis then you need to install postgis not postgresql-9.1-postgis –  Mark Davidson Nov 20 '12 at 13:59
    
Found it: apt-get install binutils gdal-bin libproj-dev postgis python-psycopg2 python-setuptools –  RickyA Nov 20 '12 at 14:31
    
Cool have updated my answer to reflect that. –  Mark Davidson Nov 20 '12 at 14:41
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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