Last active
December 16, 2015 07:39
-
-
Save flomotlik/5400382 to your computer and use it in GitHub Desktop.
Install postgres 9.2 and Postgis 2.0.x on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Postgres Repository | |
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' | |
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
apt-get install postgresql-9.2 postgresql-contrib-9.2 | |
#Install POSTGIS | |
apt-get install postgresql-server-dev-9.2 libgeos-dev libproj-dev libgdal-dev -y -q | |
wget http://download.osgeo.org/postgis/source/postgis-2.0.3.tar.gz | |
tar xvzf postgis-2.0.3.tar.gz | |
cd postgis-2.0.3 | |
./configure | |
make | |
make install | |
cd | |
#Guide to updating your data: http://www.postgis.org/docs/postgis_installation.html#upgrading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment