[GRASS5] LD_LIBRARY_PATH modification in init.sh (?)

Markus Neteler neteler at itc.it
Wed Jun 30 08:47:19 EDT 2004


On Wed, Jun 30, 2004 at 11:10:38AM +0100, Paul Kelly wrote:
> Hello Markus
> 
> Markus Neteler wrote:
> > 
> > To work around some problems when having GRASS libs linked
> > into /usr/local/lib/ for GDAL compiled with new GRASS raster
> > support, I would like to propose a change for LD_LIBRARY_PATH_VAR
> > in 'init.sh':
> > 
> > cd grass57/lib/init/
> > diff -u -r1.44 init.sh
> > --- init.sh     21 May 2004 08:51:53 -0000      1.44
> > +++ init.sh     30 Jun 2004 08:25:19 -0000
> > @@ -151,7 +151,7 @@
> >  if [ ! "$LD_LIBRARY_PATH_VAR" ] ; then
> >    LD_LIBRARY_PATH_VAR=$GISBASE/lib
> >  else
> > -  LD_LIBRARY_PATH_VAR=$LD_LIBRARY_PATH_VAR:$GISBASE/lib
> > +  LD_LIBRARY_PATH_VAR=$GISBASE/lib:$LD_LIBRARY_PATH_VAR
> >  fi
> >  export LD_LIBRARY_PATH_VAR
> > 
> > So, to first search the GRASS libs from the running version,
> > then other libs in the LD_LIBRARY_PATH[_VAR].
> 
> I agree---it looks like a bug the way it is now. Can you change it in
> 5.3 (src/general/init/init.sh) as well?
> 
> Paul

Updated in 5.3 and 5.7.

Markus




More information about the grass-dev mailing list