Tuesday, November 10, 2009

Compiling GDAL on Ubuntu Karmic 9.10

First, obtain the latest stable gdal sources from http://trac.osgeo.org/gdal/wiki/DownloadSource .

In my case, I used http://download.osgeo.org/gdal/gdal-1.6.3.tar.gz

Before compiling, I had to install the following Ubuntu packages :

sudo apt-get install libnetcdf4 libnetcdf-dev libpng-dev libtiff4-dev libcurl4-dev libtool python-gdal

The following commands
./configure
make
sudo make install
sudo ldconfig

This will install the binaries in /usr/local/bin and the libraries in /usr/local/lib

This default configuration will compile only a fraction of the formats supported. Feel free to add more components to your taste. After all, it's all FREE software!

No comments:

Post a Comment