RSS

Blog

geoDjango: Installing PostgreSQL with PostGIS for on Ubuntu 11.04

h327 Sep 2011 –  Comments (2)

Comments

I got postgresql 9.1 with geo working relatively easily on natty, despite a long list of dependencies.

sudo add-apt-repository ppa:pitti/postgresql sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install python-software-properties postgresql-9.1 postgresql-server-dev-9.1 postgresql-contrib-9.1 postgis gdal gdal-bin binutils libgeos-3.2.2 libgeos-c1 libgeos-dev libgdal1-1.8.0 libgdal1-dev libxml2 libxml2-dev libxml2-dev checkinstall proj

The trickiest part was figuring out to alter the kernel memory settings and doing a reboot put the following in /etc/sysctl.d/30-postgresql-shm.conf:

Shared memory settings for PostgreSQL

Note that if another program uses shared memory as well, you will have to

coordinate the size settings between the two.

Maximum size of shared memory segment in bytes

kernel.shmmax = 33554432

kernel.shmmax = 268435456

Maximum total size of shared memory in pages (normally 4096 bytes)

kernel.shmall = 2097152

kernel.shmall = 65536

[] Thomas Schreiber ~ 4 months, 3 weeks ago at 7:20 a.m.

See my comment here for proper formatting: http://www.reddit.com/r/django/comments/ksm5a/geodjango_installing_postgresql_with_postgis_for/

[] Thomas Schreiber ~ 4 months, 3 weeks ago at 7:23 a.m.

Copyrighted stuff .. u know.