Changes between Version 8 and Version 9 of UsersWikiPostGIS20Ubuntu1204


Ignore:
Timestamp:
05/05/12 21:45:46 (13 years ago)
Author:
jeffmeyer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Ubuntu1204

    v8 v9  
    1 = How to install PostGIS 2.0 on Ubuntu 12.04 (''precise'') =
     1= How to Get Started with PostGIS 2.0 on Ubuntu 12.04 (''precise'') =
    22UNDER CONSTRUCTION AS OF 5/5/12 2000 PT.
    33
    44This page is targeted at new users and will be written as simply as possible.
    55
    6 == Source or Packaged? ==
    7 The page is in development. Methods posted below are accurate as of last page update.
     6== Install PostGIS 2.0 ==
    87
    9 == Prerequisites ==
    10 Prerequisites can be found at [wiki:UsersWikiPostgreSQLPostGIS PostGIS Support Matrix]
     8Installation requirements can be found at [wiki:UsersWikiPostgreSQLPostGIS PostGIS Support Matrix]
    119
    1210Key libraries to focus on: GEOS, GDAL. Issues related to these two libraries will dictate the method you choose to use to install PostGIS 2.0.
     
    1715
    1816{{{
    19 $ sudo apt-get install python-software-properties
    20 $ sudo apt-add-repository ppa:sharpie/for-science
    21 $ sudo apt-add-repository ppa:sharpie/postgis-nightly
    22 $ sudo apt-get update
    23 $ sudo apt-get install postgresql-9.1-postgis
     17sudo apt-get install python-software-properties
     18sudo apt-add-repository ppa:sharpie/for-science
     19sudo apt-add-repository ppa:sharpie/postgis-nightly
     20sudo apt-get update
     21sudo apt-get install postgresql-9.1-postgis
    2422}}}
    2523
     
    3634=== Hack-ish Installation using a combination of packages and sources ===
    3735
    38 ==== Build libGDAL1.9 ====
     36==== 1/4 Install PostgreSQL and other foundations ====
     37
     38Several components are needed, which can either be built from source or installed from pre-built packages, as shown below.
     39
     40Install prerequisite packages using:
     41{{{
     42sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev proj libjson0-dev xsltproc docbook-xsl docbook-mathml gettext
     43}}}
     44
     45==== 2/4 Build libGDAL1.9 ====
    3946
    4047{{{
    41 $ sudo apt-add-repository ppa:olivier-berten/geo
    42 $ sudo apt-get update
    43 $ sudo apt-get install libgdal-dev
     48sudo apt-add-repository ppa:olivier-berten/geo
     49sudo apt-get update
     50sudo apt-get install libgdal-dev
    4451}}}
    4552
     
    5865Crud... not quite 3.3.3. On to the next step.
    5966
    60 ==== Build GEOS 3.3.x ====
     67==== 3/4 Build GEOS 3.3.x ====
    6168
    6269These are the instructions for building geos 3.3.3, based on instructions found elsewhere on trac.osgeo.org with some additions determined through trial and error:
     
    7683$ geos-config --version
    77843.3.3
    78 $
    7985}}}
    8086
    8187
    82 == older notes ==
    83 
    84 Several components are needed, which can either be built from source or installed from pre-built packages, as shown below.
    85 
    86 Install prerequisite packages using:
    87 {{{
    88 sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev proj libjson0-dev xsltproc docbook-xsl docbook-mathml
    89 }}}
    90 
    91 Optional package for raster support (this is required if you want to build the PostgreSQL extensions):
    92 {{{
    93 sudo apt-get install libgdal-dev
    94 }}}
    95 
    96 
    97 
    98 == Build PostGIS ==
     88==== 4/4 Build PostGIS ====
    9989{{{
    10090wget http://postgis.refractions.net/download/postgis-2.0.0.tar.gz
     
    10393}}}
    10494
    105 PostGIS 2.0 can be configured to disable topology or raster components, using the configure flags `--without-raster` and/or `--without-topology`. The default is to build both. Note that raster is required for the extension installation method for PostgreSQL.
    10695{{{
    107 ./configure
     96./configure --with-gui     <--- not sure if the with-gui is required
    10897make
    10998sudo make install
     
    119108}}}
    120109
    121 == Spatially enabling a database ==
     110
     111
     112== Spatially-enable a database ==
    122113With PostgreSQL 9.1, there are two methods to add PostGIS functionality to a database: using extensions, or using enabler scripts.
    123114