...
We decided against using python virtualenv on the web servers.
Since we are using mod_wsgi, if we wanted to use different version of python,
we would have to recompile mod_wsgi against that version of python.
virtualenv does not help with this issue and it adds a bit of complexity so decided to go wiothout without it.
Table of Contents |
---|
install python 2.7.3
...
Code Block |
---|
# find old gdal and remove sudo rm -rf /usr/local/share/gdal/ # inspect output of this find... sudo find / -name "*gdal*" | grep -v 'src\|python2.5' # then pipe to xargs rm sudo find / -name "*gdal*" | grep -v 'src\|python2.5' | xargs rm # cd /usr/local/src/TARFILES wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz cd ../ tar xvfz TARFILES/gdal-1.9.0.tar.gz cd gdal-1.9.0/ # set your PATH properly so we get the right version of python export PATH=/usr/local/python27/bin:$PATH ./configure --with-python make sudo su export PATH=/usr/local/python27/bin:$PATH make install exit |
upgrade django
Code Block |
---|
$ cd /usr/local/src/TARFILES $ wget http://www.djangoproject.com/m/releases/1.3/Django-1.3.1.tar.gz $ cd ../ $ tar xvfz TARFILES/Django-1.3.1.tar.gz $ cd Django-1.3.1/ $ sudo /usr/local/python27/bin/python2.7 setup.py install $ |
check your work
To make sure everything is working as expected, use set_eas_mode.sh then visit the root URL.
...