[Live-demo] [udig-devel] uDig in OSGeoLive 6.0 without JAI

Hamish hamish_b at yahoo.com
Mon Jul 23 13:51:34 PDT 2012


Edgar wrote:
> this should probably be
> 
> LD_LIBRARY_PATH=/usr/lib/udig/jai/ext/:$LD_LIBRARY_PATH
> 
> as you most likely want to keep the old values (notice the
> dollar sign) but want to prefer the ones you put into path
> (reversed order)

further, only set it that way if the path is non-zero length:

if [ -n "$LD_LIBRARY_PATH" ] ; then
   LD_LIBRARY_PATH="/usr/lib/udig/jai/ext:$LD_LIBRARY_PATH"
else
   LD_LIBRARY_PATH="/usr/lib/udig/jai/ext"
fi


otherwise if it is empty you get ":$LD_LIBRARY_PATH", and the
bit before the : makes it include the `pwd` in the search path,
a minor security risk.


Hamish



More information about the Osgeolive mailing list