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:
- emerge postgis
- echo "template_postgis" >> /etc/conf.d/postgis_dbs # default GeoDjango template. used for tests
- echo "my_db" >> /etc/conf.d/postgis_dbs # the existing db used by my Django project
- 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.



Leave a Comment :
Leave a Comment