apt-get install python-gdal installs version 1.6.0 and this is already installed. I would like to install the 1.9.0 version.
Do I have to de-install 1.6.0 first and then compile manually or is there an apt-get package that I have missed?
apt-get install python-gdal installs version 1.6.0 and this is already installed. I would like to install the 1.9.0 version.
Do I have to de-install 1.6.0 first and then compile manually or is there an apt-get package that I have missed?
Note: this is an answer for an older version of GDAL, and there are newer versions available (including current) that can be compiled similar to this answer. Just replace the version numbers in the commands below.
Build from source, with Python bindings:
sudo apt-get install build-essential python-all-dev
wget http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz
tar xvfz gdal-2.0.0.tar.gz
cd gdal-2.0.0
./configure --with-python
make
sudo make install
In addition, some Linux distributions require the shared library cache to be updated after install:
sudo ldconfig
You can get 1.9 from Ubuntugis (see https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable).
See http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries for other sources of binaries.
Failing all else you can build 1.9 from the sources (http://trac.osgeo.org/gdal/wiki/BuildHints)
In case the question asked was still relevant, I managed to install Python-Gdal on Ubuntu 14.04 (Trusty) simply using:
apt-get install python-gdal
You can get 1.9 from Ubuntugis (see https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable) as you're running Ubuntu 10.04 Lucid. 1.9 was built for Lucid for the OSGEO Live DVD and should be available for other Ubuntu versions soon (ish). Source: some email traffic on the UbuntuGIS mailing list.
wgetcommand would look as follows:wget http://download.osgeo.org/gdal/1.11.1/gdal-1.11.1.tar.gz. – fdetsch Jan 12 '15 at 09:53make: *** No rule to make target "config.status", needed by "GDALmake.opt". Stop.. I have make installed – Joost Döbken Sep 08 '16 at 12:25