Changes between Initial Version and Version 1 of UsersWikiPostgis15Debian6src


Ignore:
Timestamp:
03/05/12 02:30:34 (13 years ago)
Author:
mwtoews
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostgis15Debian6src

    v1 v1  
     1= How to install PostGIS 1.5 on Debian Squeeze from source =
     2
     3== Prerequisites ==
     4Several components are needed, which can either be built from source or installed from pre-built packages, as shown below.
     5
     6As `root` (or prefix "`sudo`", if installed), install prerequisite packages using:
     7{{{
     8apt-get install proj postgresql-server-dev-8.4 libxml2-dev libgeos-dev
     9}}}
     10
     11Optional packages for testing PostGIS:
     12{{{
     13apt-get install libcunit1-dev
     14}}}
     15Optional packages for building documentation:
     16{{{
     17apt-get install xsltproc docbook-xsl imagemagick
     18}}}
     19(for building PDF documentation, add `dblatex`, but expect a large download)
     20
     21== Build ==
     22
     23PostGIS can be built built from any user account:
     24{{{
     25wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gz
     26cd postgis-1.5.3
     27./configure
     28make
     29}}}
     30And as `root`:
     31{{{
     32make install
     33}}}
     34
     35=== Documentation/comments ===
     36From the `postgis-1.5.3` directory:
     37{{{
     38cd doc
     39make
     40}}}
     41and as `root`:
     42{{{
     43make install
     44make comments-install
     45}}}
     46
     47== Template ==
     48Complete 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.
     49
     50Log-in as `postgres` from `root` using "`su - postgres`", and use the following commands:
     51{{{
     52createdb template_postgis
     53createlang plpgsql template_postgis
     54psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
     55psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql
     56psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis_comments.sql
     57}}}