Changes between Version 6 and Version 7 of UsersWikiPostGIS20Ubuntu1204
- Timestamp:
- 05/05/12 21:37:58 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiPostGIS20Ubuntu1204
v6 v7 12 12 Key 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. 13 13 14 === Installation using the existing Sharpie Oneiric PPA (Personal Package Archive) ===14 === Package-Based Installation using the existing Sharpie Oneiric PPA (Personal Package Archive) === 15 15 16 16 '''The good news:''' following these steps *will* install PostGIS 2.0 successfully. Thanks, Sharpie!!! : ) 17 17 18 18 {{{ 19 sudo apt-get install python-software-properties20 sudo apt-add-repository ppa:sharpie/for-science21 sudo apt-add-repository ppa:sharpie/postgis-nightly22 sudo apt-get update23 sudo apt-get install postgresql-9.1-postgis19 $ 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 24 24 }}} 25 25 26 26 '''The bad news:''' it still installs older versions of libGDAL and libGEOS than are recommended in the [wiki:UsersWikiPostgreSQLPostGIS Support Matrix]. 27 27 28 Th isinstall will install libGDAL 1.7, instead of the recommended 1.9.28 The packages above install will install libGDAL 1.7, instead of the recommended 1.9. 29 29 30 30 First 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. … … 34 34 So, let's see if we can get all of the supporting libraries to the recommended versions. 35 35 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 46 Verify you have the latest version of libGDAL: 47 {{{ 48 $ gdal-config --version 49 1.9.0 50 }}} 51 52 Looks good... what's up with libGEOS? 53 {{{ 54 $ geos-config --version 55 3.3.2 56 }}} 57 58 Crud... not quite 3.3.3. On to the next step. 59 36 60 === 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.39 61 40 62 These 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: