[GRASS-user] libgrass_gmath

Dave Roberts dvrbts at ecology.msu.montana.edu
Tue Feb 18 05:50:06 PST 2014


Hi Hamish.  Thanks for the help.

g.version -r returns 6.4.3

echo $GISBASE returns  /usr/local/grass-6.4.3
echo $GRASS_LD_LIBRARY_PATH returns /usr/local/grass-6.4.3/lib
echo $LD_LIBRARY_PATH returns /usr/local/grass-6.4.3/lib

All good so far.  However,

ls $GISBASE/lib shows no libgrass_gmath

I compiled 6.4.3 from source (can't remember specifically why).  I run 
6.4.2 on my machine at work and it's fine.  It's odd that the error 
message specifically complains about 6.4.2 even when everything points 
to 6.4.3.

The v.dissolve script seems to run fine until it calls v.extract.  I've 
had a quick look at the source code, but I'm not so good at C.  I ran 
make in the lib directory with only a couple of warnings and I don't see 
anything really problematic.

Worst case scenario is I could go back to 6.4.2.  7.0 doesn't come close 
to compiling on this machine at present.

Thanks, Dave


On 02/17/2014 12:33 PM, Hamish wrote:
> Dave wrote:
>>      I'm trying to do a simple dissolve on a vector map and getting a
>> library error
>>
>> v.dissolve inp=vmap out=dom_mid_60 column=dom_mid_60
>>         .              .            .
>>         .              .            .
>> v.extract: error while loading shared libraries:
>> libgrass_gmath.6.4.2.so: cannot open shared object file: No such file or
>> directory
>>
>> However
>>
>> ls -l /usr/local/grass-6.4.2/lib
>>
>> shows
>>
>> -rwxr-xr-x. 1 root root 77615 Dec 21  2012 libgrass_gmath.6.4.2.so
>> lrwxrwxrwx. 1 root root    23 Dec 21  2012 libgrass_gmath.so ->
>> libgrass_gmath.6.4.2.so
>>
>> just as I would expect, with read and execute permissions.
>>
>> Oddly, I'm running GRASS 6.4.3, but all the libraries are 6.4.2.  This
>> is on Scientific Linux 6 (derived from RedHat Enterprise linux 6).
>
> Hi,
>
> try:
>
> GRASS> g.version -r
>
> :)
>
> GRASS> echo $GISBASE
> GRASS> echo $GRASS_LD_LIBRARY_PATH
> GRASS> ls $GISBASE/lib
> GRASS> echo $LD_LIBRARY_PATH
>
> that should show you where the grass install is located.
>
> It's usually fine to have many versions of GRASS installed
> at the same time, they can all run self-contained.
>
> --> you might check if the 6.4.2 install is listed in /etc/ld.so.conf
> or /etc/ld.so.conf.d/*, if so change it to the location of the 6.4.3
> libraries and re-run `ldconfig` (as root).
>
>
> good luck,
> Hamish
>
>

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts                                     office 406-994-4548
Professor and Head                                      FAX 406-994-3190
Department of Ecology                         email droberts at montana.edu
Montana State University
Bozeman, MT 59717-3460


More information about the grass-user mailing list