...
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 # >>> psycopg2.__version__ # stdout should be # '2.4.5 (dt dec pq3 ext)' # # >>> exit() |
upgrade proj.4
Code Block |
---|
# find and remove old proj libraries (?) sudo find / -name "*proj*" sudo find / -name "*proj*" | grep -v eas_ | grep -v Python-2 | grep -v usr\/local\/src | grep -v \.gz | grep -v django # etc cd /usr/local/lib ls -l sudo rm libproj.so.0.6.6 # 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*" sudo find / -name "*proj*" | grep -v eas_ | grep -v Python-2 | grep -v usr\/local\/src | grep -v \.gz | grep -v django # etc 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 xvfz ../../TARFILES/proj-datumgrid-1.5.tar.gz cd .. ./configure make sudo make install |
upgrade geos
Code Block |
---|
# find old geos programs and libs and remove them # do this iteratively with care sudo find / -type f -name "*geos*" | grep -v src | grep -v geosilk | grep -v \.py sudo find / -type f -name "*geos*" | grep -v src # rm stuff as needed | grep -v geosilk | grep -v \.py | sudo xargs rm # install new geos cd /usr/local/src/TARFILES wget http://download.osgeo.org/geos/geos-3.3.3.tar.bz2 cd .. tar xvfj TARFILES/geos-3.3.3.tar.bz2 cd geos-3.3.3 # no python bindings ./configure make sudo make install |
...
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' | sudo 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 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 |
...