6

I have installed the latest stable version of PostgreSQL v9.2 and I want to install the PostGIS v2 extension.

I've been searching for it for 3 days now, however can't find it.

I did however find PostGIS v2 for PostgreSQL v9.1, thanks to this site: http://linfiniti.com/2012/05/installing-postgis-2-0-on-ubuntu/

I'm an Ubuntu novice, I'm more accustomed to Windows.

The PostgreSQL v9.1 package doesn't work. Where can I get the correct package?

3 Answers 3

1

From this listing it looks like there is a package named postgresql-9.2-postgis2. You may have to add a new apt repository to the existing ones. In this, you can find help here.

3
  • Thanks for this. I'm having some trouble understanding how to determine what the location of the repository is. Could you please advice me? Commented Sep 28, 2012 at 18:27
  • Can't exactly test it at the moment, but I guess adding a line deb http://apt.opengeo.org/stage/suite/v3/ubuntu lucid main to sources.list and running apt-get update would do it. (This asumes you use the lucid version.) If you don't succeed, I think you can get help from the opengeo.org site. Commented Sep 28, 2012 at 19:27
  • I could't got it to work so I started over with a new Ubuntu server and installed Postgresql v9.1 and PostGIS v2 and it seems to be working. Commented Oct 2, 2012 at 19:00
1

You may try installing PostgreSQL 9.2 from repository then install PostGIS 2.0 from source using below commands:

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

1

Here you are a few steps:

  1. Install postgreSQL 9.x from packages;
  2. Configure ubuntugis repository from here;
  3. Add the following lines to /etc/apt/source.list with your ubuntu version:

    deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
    YOUR_UBUNTU_VERSION_HERE main deb-src
    http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu
    YOUR_UBUNTU_VERSION_HERE main
    
  4. Run the command apt-get update

  5. Install postGIS library and all dependencies from synaptic;
  6. Create a new DB and configure PostGIS spatial extension as described here --> consider steps 2 and 3.
1
  • The links are subject to link rot, please consider adding the important substeps from them to your answer. Thanks in advance! Commented Apr 27, 2015 at 9:23

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.