Home » Odeon Blogs » Stefan Talpalaru, CTO »

installing postgis on Gentoo

installing postgis on Gentoo

In order to use GeoDjango I had to install postgis on a Gentoo unstable system. This is how I did it (if I did it).

First, I had to fix the postgis-1.5.2 ebuild. You can get it from here. Corresponding bugzilla item here.

After installing the ebuild in my custom overlay, I ran the following commands in a root shell:

  1. emerge postgis
  2. echo "template_postgis" >> /etc/conf.d/postgis_dbs # default GeoDjango template. used for tests
  3. echo "my_db" >> /etc/conf.d/postgis_dbs # the existing db used by my Django project
  4. emerge --config postgis

And that's all there is to it. The '--config' step creates new databases/templates and spatially enables or soft-upgrades existing ones.


Categories: Django Gentoo



Leave a Comment :

(required)


(required)




(required)




(required)






Leave a Comment


Page generated in: 0.14s