Skip navigation.
Home

Geospatial Data Abstraction Library Installation

GDAL (Geospatial Data Abstraction Library) is a translator library for raster and vector geospatial data formats.

Download, extract, install.


cd /usr/local/src/GDAL
wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz
tar gdal-1.11.2.tar.gz
cd gdal-1.11.2
../config
make
make install

The config file is a quick executable.


#!/bin/bash
./configure --prefix=/usr/local/$(basename $(pwd) | sed 's#-#/#')

Change to the appropriate modules directory, check for .desc and .version and .base, create a symblink to .base


cd /usr/local/Modules/modulefiles/gdal
ln -s .base 1.11.2

The .base module takes the following form.


#%Module1.0#####################################################################
##
## $name modulefile
##
set ver [lrange [split [ module-info name ] / ] 1 1 ]
set name [lrange [split [ module-info name ] / ] 0 0 ]
set loading [module-info mode load]
set desc [join [read [ open "/usr/local/Modules/modulefiles/$name/.desc" ] ] ]
proc ModulesHelp { } {
puts stderr "\tThis module sets the envinronment for $name v$ver"
}
module-whatis "$desc (v$ver)"
#prepend-path --delim " " CPPFLAGS -I/usr/local/$name/$ver/include
#prepend-path --delim " " LDFLAGS -L/usr/local/$name/$ver/lib
#prepend-path LD_LIBRARY_PATH /usr/local/$name/$ver/lib
prepend-path MANPATH /usr/local/$name/$ver/man
prepend-path MANPATH /usr/local/$name/$ver/share/man
prepend-path PATH /usr/local/$name/$ver/bin