Changes between Initial Version and Version 1 of UsersWikiPostGIS15Debian60pkg


Ignore:
Timestamp:
Mar 7, 2012, 2:42:40 AM (11 years ago)
Author:
Mike Taves
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS15Debian60pkg

    v1 v1  
     1= How to install PostGIS 1.5 on Debian 6.0 (''squeeze'') from packages =
     2
     3||'''Component'''||'''Version'''||
     4||[http://packages.debian.org/squeeze/postgresql-8.4-postgis PostGIS]||1.5.1||
     5||[http://packages.debian.org/squeeze/postgresql-8.4 PostgreSQL]||8.4.11||
     6||[http://packages.debian.org/squeeze/libproj0 PROJ]||4.7.0||
     7||[http://packages.debian.org/squeeze/libgeos-c1 GEOS]||3.2.0||
     8
     9Either log-in as `root`, or use "`su - root`" from a user account with admin privileges. Install everything using:
     10{{{
     11apt-get install postgresql-8.4-postgis
     12}}}
     13Accept and install the approx 12 packages.
     14
     15Complete a post-install by creating a template, which can be re-used for creating multiple spatially-enabled databases. Or if you just want to make one spatially enabled database, you can modify the commands for your needs.
     16
     17Log-in as `postgres` from `root` using "`su - postgres`", and use the following commands:
     18{{{
     19createdb template_postgis
     20createlang plpgsql template_postgis
     21psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
     22psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql
     23psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis_comments.sql
     24}}}