Code

Changes between Version 16 and Version 17 of GeoDjangoUbuntuInstall


Ignore:
Timestamp:
08/18/08 07:18:38 (6 years ago)
Author:
fsgpr
Comment:

Fixes to Short Version (added Notes, removed double ':'s, and *'s)

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoUbuntuInstall

    v16 v17  
    1414The following is a list of commands to enter into the Terminal to install GeoDjango on Ubuntu.  For more detailed explanations on the installation process see the GeoDjangoInstall wiki. 
    1515{{{ 
    16  * #Download and Install the latest version of Django 
    17  * cd ~ 
    18  * wget http://www.djangoproject.com/download/1.0-beta-1/tarball/ 
    19  * tar xzvf Django-1.0-beta_1.tar.gz  
    20  * sudo python ~/Django-1.0-beta_1/setup.py install  #Enter password to give root privileges as prompted throughout the installation 
    21  * #Install Apache2, PsycoPg2, PostGreSQL, PostGIS, build-essential [to be able to compile libraries], and Mod_Python 
    22  * sudo apt-get install apache2 python-psycopg2 postgresql build-essential libapache2-mod-python postgresql-8.3-postgis #Press 'y' to confirm download 
    23  * wget http://download.osgeo.org/gdal/gdal-1.5.2.tar.gz #The version in the Repositories is currently not new enough for GeoDjango 
    24  * wget http://download.osgeo.org/geos/geos-3.0.0.tar.bz2  #The version in the Repositories is currently not new enough for GeoDjango 
    25  * tar xzvf gdal-1.5.2.tar.gz 
    26  * cd gdal-1.5.2 
    27  * ./configure --datadir=/usr/local/share/gdal 
    28  * make 
    29  * sudo make install 
    30  * cd ~ 
    31  * bzip2 -dc geos-3.0.0.tar.bz2 | tar -x 
    32  * cd geos-3.0.0 
    33  * ./configure 
    34  * make 
    35  * sudo make install        
    36  * sudo cp /usr/share/gcs.csv /usr/local/share/ 
    37  * sudo pico /etc/postgresql/8.3/main/pg_hba.conf #Edit to allow Django Connections, as per the regular Django Docs 
    38  * sudo pico /etc/apache2/sites-available/default #Edit to Create Django Locations, as per the regular Django Docs  
     16#Download and Install the latest version of Django 
     17cd ~ 
     18wget http://www.djangoproject.com/download/1.0-beta-1/tarball/ 
     19tar xzvf Django-1.0-beta_1.tar.gz  
     20sudo python ~/Django-1.0-beta_1/setup.py install  #Enter password to give root privileges as prompted throughout the installation 
     21#Install Apache2, PsycoPg2, PostGreSQL, PostGIS, build-essential [to be able to compile libraries], and Mod_Python 
     22sudo apt-get install apache2 python-psycopg2 postgresql build-essential libapache2-mod-python postgresql-8.3-postgis #Press 'y' to confirm download 
     23wget http://download.osgeo.org/gdal/gdal-1.5.2.tar.gz #The version in the Repositories is currently not new enough for GeoDjango 
     24wget http://download.osgeo.org/geos/geos-3.0.0.tar.bz2  #The version in the Repositories is currently not new enough for GeoDjango 
     25tar xzvf gdal-1.5.2.tar.gz 
     26cd gdal-1.5.2 
     27./configure --datadir=/usr/local/share/gdal 
     28make 
     29sudo make install 
     30cd ~ 
     31bzip2 -dc geos-3.0.0.tar.bz2 | tar -x 
     32cd geos-3.0.0 
     33./configure 
     34make 
     35sudo make install        
     36sudo cp /usr/share/gcs.csv /usr/local/share/ 
     37sudo pico /etc/postgresql/8.3/main/pg_hba.conf #Edit to allow Django Connections, as per the regular Django Docs 
     38sudo pico /etc/apache2/sites-available/default #Edit to Create Django Locations, as per the regular Django Docs  
    3939}}} 
    4040 
    4141Create your PostGIS enabled PostGreSQL db 
    4242{{{ 
    43  * sudo su postgres 
    44  * createuser [username]    
    45  * psql  
    46      * alter user [username] with password '[password]'; 
    47      * \q 
    48  * createdb [dbname] 
    49  * createlang plpgsql [dbname] 
    50  * psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql 
    51  * psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql 
     43sudo su postgres 
     44createuser [username]    
     45psql  
     46    alter user [username] with password '[password]'; 
     47    \q 
     48createdb [dbname] 
     49createlang plpgsql [dbname] 
     50psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql 
     51psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql 
    5252}}} 
    5353 
     54Notes 
     55{{{ 
     56Add the following to near the beginning of the settings.py file for any GeoDjango app you create: 
     57    GDAL_LIBRARY_PATH = '/usr/local/lib/libgdal.so' 
     58Add the following to the Apache2 config file in the Location Subsection: 
     59    SetEnv GDAL_DATA /usr/local/share/  
     60}}} 
    5461== Full Instructions == 
    5562