Changes between Version 6 and Version 7 of UsersWikiPostGIS20Ubuntu1204


Ignore:
Timestamp:
05/05/12 21:37:58 (13 years ago)
Author:
jeffmeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostGIS20Ubuntu1204

    v6 v7  
    1212Key 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.
    1313
    14 === Installation using the existing Sharpie Oneiric PPA (Personal Package Archive) ===
     14=== Package-Based Installation using the existing Sharpie Oneiric PPA (Personal Package Archive) ===
    1515
    1616'''The good news:''' following these steps *will* install PostGIS 2.0 successfully. Thanks, Sharpie!!! : )
    1717
    1818{{{
    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
     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
    2424}}}
    2525
    2626'''The bad news:''' it still installs older versions of libGDAL and libGEOS than are recommended in the [wiki:UsersWikiPostgreSQLPostGIS Support Matrix].
    2727
    28 This install will install libGDAL 1.7, instead of the recommended 1.9.
     28The packages above install will install libGDAL 1.7, instead of the recommended 1.9.
    2929
    3030First tricky thing: the existing Precise PPA for libGDAL 1.9 has been built to depend on libGEOS 3.3.2, and libGEOS 3.3.3 is listed as the preferred library in the Support Matrix.
     
    3434So, let's see if we can get all of the supporting libraries to the recommended versions.
    3535
     36=== Hack-ish Installation using a combination of packages and sources ===
     37
     38=== Build libGDAL1.9 ===
     39
     40{{{
     41$ sudo apt-add-repository ppa:olivier-berten/geo
     42$ sudo apt-get update
     43$ sudo apt-get install libgdal-dev
     44}}}
     45
     46Verify you have the latest version of libGDAL:
     47{{{
     48$ gdal-config --version
     491.9.0
     50}}}
     51
     52Looks good... what's up with libGEOS?
     53{{{
     54$ geos-config --version
     553.3.2
     56}}}
     57
     58Crud... not quite 3.3.3. On to the next step.
     59
    3660=== Build GEOS 3.3.x ===
    37 
    38 PostGIS 2.0 requires GEOS >= 3.3.2 for topology support, however Ubuntu 11.10 only has GEOS 3.2.2 available in packages, so it needs to be built from source. If you don't need topology, you don't ''need'' to build this component, but it is highly recommended.
    3961
    4062These 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: