Changes between Initial Version and Version 1 of UsersWikiPostGIS15Ubuntu1110src


Ignore:
Timestamp:
Mar 5, 2012, 5:42:31 AM (12 years ago)
Author:
Mike Taves
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS15Ubuntu1110src

    v1 v1  
     1= How to install PostGIS 1.5 on Ubuntu 11.10 (''oneiric'') 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
     6Install prerequisite packages using:
     7{{{
     8sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev libgeos-dev proj
     9}}}
     10
     11Optional packages for testing PostGIS:
     12{{{
     13sudo apt-get install libcunit1-dev
     14}}}
     15Optional packages for building documentation:
     16{{{
     17sudo apt-get install xsltproc docbook-xsl imagemagick
     18}}}
     19(for building PDF documentation, add `dblatex`, but expect a large download)
     20
     21== Build ==
     22Download, configure, build and install:
     23{{{
     24wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gz
     25tar xfvz postgis-1.5.3.tar.gz
     26cd postgis-1.5.3
     27./configure
     28make
     29sudo make install
     30}}}
     31
     32=== Documentation/comments ===
     33From the `postgis-1.5.3` directory:
     34{{{
     35cd doc
     36make
     37sudo make install
     38sudo make comments-install
     39}}}
     40
     41== Template ==
     42Complete 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.
     43{{{
     44sudo -u postgres createdb template_postgis
     45sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
     46sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
     47sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis_comments.sql
     48}}}
     49
     50== See also ==
     51 * https://help.ubuntu.com/community/PostgreSQL