[GRASS5] Debian and d.m/d.zoom bug - /etc/ld.so.conf

Hamish hamish_nospam at yahoo.com
Wed Dec 1 17:40:55 EST 2004


> >> [...]
> >>> I had to modify lib/init/grass-run.sh to make it working for Fedora:
> >>>
> >>> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$GISBASE/lib"
> >>>                ^^^^^^^^^^^^^^^^^-added
> >>>
> >>> Hopefully this problem is resolved now.
> >>
> >> Well in general it looks like it should just be passing on the
> >current LD_LIBRARY_PATH (whatever that contains). Would something
> >like exec xterm -e LD_LIBRARY_PATH=$env(LD_LIBRARY_PATH) d.zoom
> >> (in the Tcl code) not work?
..
> The thing is we are assuming LD_LIBRARY_PATH has been unset by the
> time grass-run.sh is run, and we need to set it again. So your change
> doesn't really make sense as on the systems that have the problem, 
> $LD_LIBRARY_PATH will already be empty by that stage. I was thinking
> if we need to pass on an already existing LD_LIBRARY_PATH, it needs to
> be evaluated before xterm is run as that is what unsets it.



if [ -z LD_LIBRARY_PATH ] ; then
    LD_LIBRARY_PATH="$GISBASE/lib"
else
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$GISBASE/lib"
fi
export LD_LIBRARY_PATH




q: should order be "$LD_LIBRARY_PATH":"$GISBASE/lib" or
   "$GISBASE/lib":"$LD_LIBRARY_PATH"?



Hamish




More information about the grass-dev mailing list