3

I have read this question: https://dba.stackexchange.com/questions/25033/install-postgis-v2-for-postgresql-v9-2, but it didn't resolve my problem.

I added the PostgreSQL backports PPA and installed the postgresql-9.2 package, but there is no package for PostGIS.

selfchief
  • 31
  • 1
  • 2

2 Answers2

1

How to Get Started with PostGIS 2.0 on Ubuntu 12.04 (precise)

(only tested on a Oracle VM) see Migrating to Linux from Windows previous install.

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:sharpie/for-science
sudo apt-add-repository ppa:sharpie/postgis-stable
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install postgresql-9.2-postgis2 

Then build

http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204 (replace postgresql-9.1 with postgresql-9.2)

Mapperz
  • 49,701
  • 9
  • 73
  • 132
0

You may download the source file and build it by yourself:

Install GEOS(for topology support)

wget http://download.osgeo.org/geos/geos-3.3.9.tar.bz2
tar xfj geos-3.3.9.tar.bz2
cd geos-3.3.9
./configure
make
sudo make install
cd..

Install PostGIS 2.0

wget http://download.osgeo.org/postgis/source/postgis-2.0.6.tar.gz
tar xfz postgis-2.0.6.tar.gz
cd postgis-2.0.6
./configure
make
sudo make install
sudo ldconfig
sudo make comments-install

Source: how to install postgresql 9.2 + postgis 2.0

Vipin raj
  • 56
  • 2