- Install the prerequisite packages:
sudo apt-get install packaging-dev postgresql postgresql-server-dev-9.1 libxml2-dev libgeos-dev libproj-dev libgdal-dev - Download the sources (e.g. for PostGIS 2.1.0):
wget http://download.osgeo.org/postgis/source/postgis-2.1.0.tar.gz - Extract the sources and go into extraction folder:
tar xvzf postgis-2.1.0.tar.gz; cd postgis-2.1.0 - Configure the sources
./configure - Compile PostGIS
make - Install the compiled PostGIS extension
sudo make install - Use PostGIS within PostgreSQL:
CREATE EXTENSION postgis;
Dienstag, 17. September 2013
Build and install latest PostGIS in Ubuntu Linux
If you need to stick with the latest PostGIS version for your PostgreSQL-database, you either have to find a suitable PPA or simply build the extension yourself, because Ubuntu's PostGIS version is out-of-date. Instead of using 3rd party PPAs, I recommend to build it yourself the following way:
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen