Version 12 (modified by Mateusz Łoskot, 10 years ago) (diff)



Note, following instructions apply to Linux and other environments where GNU autotools are available (autoconf, automake, make).

The right order of steps to perform is, briefly:

  • build GDAL without GRASS support
  • build GRASS
  • add your GRASS library path to and run ldconfig
  • build GDAL with GRASS support


  • Download and install GRASS source. The easiest option is to use binary packages prepared for your operating system.
tar -zxf gdal-1.5.0.tar.gz
cd gdal-1.5.0

Building GDAL and GRASS driver plugin

  • Configure GDAL sources without GRASS support:
./configure --without-grass

and then you should see the built-in GRASS driver disabled (no) in the summary:

GDAL is now configured for i686-pc-linux-gnu
  GRASS support:             no
  • Build and install GDAL:

The install step needs root privileges:

sudo make install

Build GRASS plugin

  • Download latest sources of GRASS plugin where the package file name is gdal-grass-X.Y.Z.tar.gz, ie. gdal-grass-1.4.3.tar.gz (1.4.3 plugin is fine with any 1.4.x GDAL). Unpack the source package:
tar -zxf gdal-grass-1.4.3.tar.gz
cd gdal-grass-1.4.3
  • Configure the plugin providing paths to gdal-config program and GRASS files as follows:
./configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/grass6
  • Now, the plugin is ready to build and install:

The install step needs root privileges:

sudo make install

Open Tickets

GRASS plugin OGR access: Don`t try to write data to mapset