Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

upgrade mod_wsgi

Code Block
$ cd /usr/local/src/TARFILES
$ wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz
$ cd ../
$
tar xvfz TARFILES/mod_wsgi-3.3.tar.gz
$ cd mod_wsgi-3.3
$
./configure --with-python=/usr/local/python27/bin/python
$ make clean
$ make
$ sudo make install

upgrade psycopg2

Code Block
$ cd /usr/local/src/TARFILES/
$
wget http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz
$ cd ../
$
tar xvfz TARFILES/psycopg2-2.4.5.tar.gz
$
cd psycopg2-2.4.5/
$
sudo /usr/local/python27/bin/python2.7 setup.py install
$ /usr/local/python27/bin/python2.7
# echo should be as follows
# Python 2.7.3 (default, May 16 2012, 09:40:25)
# [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
# Type "help", "copyright", "credits" or "license" for more information.

# check your work
# >>> import psycopg2
# >>> exit()
$

upgrade proj.4

Code Block
$ cd /usr/local/src/TARFILES
$ wget ftp://ftp.remotesensing.org/proj/proj-4.8.0.tar.gz
$ wget ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.5.tar.gz
$
cd ../
$ tar xvfz TARFILES/proj-4.8.0.tar.gz
$
cd proj-4.8.0/nad
$
tar xvfz ../../TARFILES/proj-datumgrid-1.5.tar.gz
$
cd ..
$ ./configure
$
make
$
sudo make install
# find and remove old proj libraries (?)
$
sudo find / -name "*proj*"
$
cd /usr/local/lib
$
ls -l
$
sudo rm libproj.so.0.6.6
$

upgrade geos

Code Block
# find old geos programs and libs and remove them
$
sudo find / -name "*geos*" | grep -v src
...# rm stuff as needed
# install new geos
$
cd /usr/local/src/TARFILES
$
wget http://download.osgeo.org/geos/geos-3.3.3.tar.bz2
$ bunzip2 geos-3.3.3.tar.bz2
$
cd ../
$
tar xvfz TARFILES/geos-3.3.3.tar
$
cd geos-3.3.3
# no python bindings
$
./configure
$
make
$
sudo make install
$

upgrade gdal

Code Block
# find old gdal and remove
$ sudo find / -name "*gdal*" | grep -v src
$ sudo ls -l /usr/local/bin/gdal*
$ sudo rm /usr/local/bin/gdal*
# repeat the above 3 lines until you are satisfied.
....
$ 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/
# make sure the PATH is right so we get the right version of python
$ PATH=/usr/local/python27/bin:$PATH
$ ./configure --with-python
$ make clean
$ make
$ sudo make install
$

...