[GRASS-user] GRASS 7 and gdal-grass-1.11.2 plugin

John A Stevenson john.stevenson at ed.ac.uk
Tue Apr 21 06:44:30 PDT 2015


Hi,

I'm trying to install the GDAL-GRASS 7 plugin in order to plot GRASS 
data in QGIS.

I downloaded the source 
(http://download.osgeo.org/gdal/1.11.2/gdal-grass-1.11.2.tar.gz) and 
followed the instructions in the README.  When I try to configure with 
the following command:

```
CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \
         --with-grass=/usr/lib/grass70 \
         --with-gdal=/usr/bin/gdal-config
```

I get the following error:

```
checking for G_asprintf in -lgrass_gis... no
checking for G_putenv in -lgrass_gis.7.0.svn... no
configure: error: --with-grass=/usr/lib/grass70 requested, but libraries 
not found!  Perhaps you need to set LD_LIBRARY_PATH to include 
/usr/lib/grass70/lib?
```

This is the same error as described in the gdal-grass README, but the 
workaround (creating grass.conf in /etc/ld.so.conf.d with 
/usr/lib/grass70/lib, then running sudo ldconfig) doesn't help.  I have 
also tried patching the configure.in and Makefile.in source files using 
the patch from here: https://trac.osgeo.org/gdal/ticket/5852 without 
success.

How can I point to compiler at the right place?


*    OS: Linux Mint 17, based on Ubuntu 14.04 (Trusty).
*    GRASS version : 7.0.0-1~exp2~trusty3 from 
ppa:ubuntugis/ubuntugis-unstable repository
(installs to /usr/lib/grass70.  Also installed grass-dev)
*    GDAL version: 1.11.1+dfsg-1~exp2~trusty from 
ppa:ubuntugis/ubuntugis-unstable repository
(installs to /usr/bin)

Thanks,

John

-- 
Dr John A Stevenson
RSE/Scottish Government Personal Research Fellow
(co-funded by Marie Curie Actions)
School of GeoSciences
The University of Edinburgh
Grant Institute
James Hutton Road
Edinburgh EH9 3FE
Scotland
PHONE: (+44) 131 650 7526
FAX:   (+44) 131 668 3184
email: john.stevenson at ed.ac.uk
twitter: @volcan01010
web: http://www.geos.ed.ac.uk/homes/jsteven5
blog: http://all-geo.org/volcan01010
**ICELAND MOBILE: (+354) 8417106**


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the grass-user mailing list