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

Markus Neteler neteler at itc.it
Wed Jun 30 04:37:53 EDT 2004


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].

Are any side effects to be expected?

Markus




More information about the grass-dev mailing list