Changes between Initial Version and Version 1 of GeoDjangoUbuntuInstall


Ignore:
Timestamp:
Aug 16, 2008, 1:58:49 PM (16 years ago)
Author:
springmeyer
Comment:

Added beginning of Apt-get install approach for GeoDjango on Ubuntu

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoUbuntuInstall

    v1 v1  
     1[[TOC()]]
     2= !GeoDjango Ubuntu Installation =
     3
     4The GeoDjangoInstall wiki describes in detail how to install GeoDjango dependencies from source, which for many reasons is the ideal approach. However, with the recent Ubuntu releases you can also use the Synaptic Package Manager (apt-get install on the command line) to handle much of the installation work for you.
     5
     6== Short Version ==
     7 * Django from trunk
     8 * Add the Ubuntu universe and multiverse debs
     9 * Update and upgrade Ubuntu with Apt-get
     10 * easy_install Pycopg2
     11 * If you need Postgres and Apache apt-get 'em
     12  * make sure to grab the dev versions
     13  * make sure you edit pg_hba.conf to allow django
     14 * Apt-get postgis, libgdal, libgeos, and proj
     15 * Create your PostGIS enabled PostgreSQL db
     16
     17== Full Instructions ==
     18
     19=== Step 1 ===
     20Add the universe and multiverse debian repositories
     21
     22{{{
     23#if you have the desktop edition
     24sudo gedit /etc/apt/sources.list
     25#if you have the server edition
     26sudo nano /etc/apt/sources.list
     27# if you know how to use vim, you probably don't need to be reading this page!
     28sudo vim /etc/apt/sources.list
     29## Add these Universe / Multiverse sites to the bottom of the page
     30## Make sure to specify the correct Ubuntu version
     31deb http://archive.ubuntu.com/ubuntu gutsy universe multiverse
     32deb-src http://archive.ubuntu.com/ubuntu gutsy universe multiverse
     33deb http://archive.ubuntu.com/ubuntu gutsy-security universe multiverse
     34deb-src http://archive.ubuntu.com/ubuntu gutsy-security universe multiverse
     35deb http://archive.ubuntu.com/ubuntu gutsy-updates universe multiverse
     36deb-src http://archive.ubuntu.com/ubuntu gutsy-updates universe multiverse
     37}}}
     38
     39=== Step 2 ===
     40Then upgrade and update ubuntu based on these new sources
     41{{{
     42apt-get update
     43apt-get upgrade
     44}}}
     45
     46=== Step 3 ===
     47Use easy_install to install psycopg2
     48{{{
     49wget http://peak.telecommunity.com/dist/ez_setup.py
     50sudo python ez_setup.py
     51sudo easy_install psycopg2
     52}}}
     53
     54=== Step 4 ===
     55Install Apache and PostgreSQL (if you need them)
     56{{{
     57apt-get install apache2 apache2-threaded-dev apache2-doc apache2-mpm-prefork apache2-utils ssl-cert 
     58}}}
     59{{{
     60sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-8.3
     61}}}
Back to Top