Changes between Initial Version and Version 1 of UsersWikiPostGIS15Debian60src


Ignore:
Timestamp:
03/07/12 02:44:51 (13 years ago)
Author:
Mike Taves
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS15Debian60src

    v1 v1  
     1= How to install PostGIS 1.5 on Debian 6.0 (''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 available), 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
     26tar xfvz postgis-1.5.3.tar.gz
     27cd postgis-1.5.3
     28./configure
     29make
     30}}}
     31And as `root`:
     32{{{
     33make install
     34}}}
     35
     36=== Documentation/comments ===
     37From the `postgis-1.5.3` directory:
     38{{{
     39cd doc
     40make
     41}}}
     42and as `root`:
     43{{{
     44make install
     45make comments-install
     46}}}
     47
     48== Template ==
     49Complete 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.
     50
     51Log-in as `postgres` from `root` using "`su - postgres`", and use the following commands:
     52{{{
     53createdb template_postgis
     54createlang plpgsql template_postgis
     55psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
     56psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql
     57psql -d template_postgis -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis_comments.sql
     58}}}