Errror with gmeta6()
On Wed, 9 Sep 2009, Agustin Lobo wrote:
Hi! I've started spgrass6() with no problems (I get: GRASS GIS interface loaded with GRASS version: 6.4.0RC4 and location: carlos but then get an error with gmeta6:
gmeta6()
g.region: error while loading shared libraries: libgrass_vect.so: cannot open
shared object file: No such file or directory
Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText == :
argument is of length zero
Error in parseGRASS(cmd) : g.region not parsed
I'm using R 2.9.1 on ubuntu jaunty and just
made install.packages("spgrass6")
g.region -p works fine in the grass console, but
system("g.region -p")
g.region: error while loading shared libraries: libgrass_vect.so: cannot open shared object file: No such file or directory
This will be a "dependency hell" problem between GDAL and GRASS binaries, probably a stale GRASS GDAL plugin somewhere. It has been seen on Debian based distributions before, for example: http://lists.osgeo.org/pipermail/grass-stats/2009-July/001105.html Most likely you have multiple GDAL and/or GDAL binaries that do not like each other, and because of the possible reverse dependence in the GDAL GRASS plugin, they get in each others' way. The grass-stats list may be a good place to ask too. Roger
Any idea on how to fix this problem? Thanks Agus
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no