[GRASS-dev] GDAL,GRASS 7 and PostGIS on Ubunutu 12.04

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Wed Dec 11 03:26:03 PST 2013


Dear all,

Do not know if this post belongs here or to PostGIS:
I compiled GDAL (rev 26701) with support for GRASS 7 (not the plugin but recompiled GDAL with GRASS support after building GRASS 7 from source (rev 58438)).
gdalinfo --formats gives:

Supported Formats:
  GRASS (ro):
(no version info in output)

 I do have both
/usr/local/grass-7.0.svn/lib
/usr/local/grass-6.4.4svn/lib
In /etc/ld.so.conf (in that order).

gdal_translate gives a warning message:

Warning 1: GRASS warning: GISBASE enviroment variable was not set, using:
/usr/local/grass-7.0.svn

However, it takes GRASS raster gladly, so that works.

Then I build PostGIS 2.1.2 against the compiled GDAL version with GRASS support.
Unfortunately raster2pgsql gives error messages when I try to feed GRASS raster:
"Segmentation fault (core dumped)"

After I removed the link to GRASS 6.4.4svn/lib in /etc/ld.so.conf the errormessage changes to:
ERROR 1: libgrass_I.so: cannot open shared object file: No such file or directory
*** glibc detected *** raster2pgsql: corrupted double-linked list: 0x00000000012e59f0 ***

Any Ideas?

Cheers
Stefan


More information about the grass-dev mailing list