[GRASS-stats] [Fwd: Re: [R-sig-Geo] Errror with gmeta6()]

Markus Neteler neteler at osgeo.org
Sun Sep 13 13:59:58 EDT 2009


2009/9/9 Agustin Lobo <alobolistas at gmail.com>:
> Any further help on this list?
> Agus
> 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,

I suspect that instead the LD link to the GRASS libraries is missing. I have
a file (create as root):

# something like this (adapt path):
cat /etc/ld.so.conf.d/grass.conf
/usr/local/grass640/dist.x86_64-unknown-linux-gnu/lib

The program "ldconfig" needs to be run afterwards.

Hope this helps
Markus


More information about the grass-stats mailing list