[GRASS5] LD_LIBRARY_PATH modification in init.sh (?)
Paul Kelly
paul-grass at stjohnspoint.co.uk
Wed Jun 30 06:10:38 EDT 2004
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
More information about the grass-dev
mailing list