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

Glynn Clements glynn at gclements.plus.com
Thu Dec 2 05:32:09 EST 2004


Paul Kelly wrote:

> > d.m is now updated in CVS.
> > Debian users: please try again (don't forget to revert the /etc/ld.so.conf change
> > for testing, run ldconfig as well).
> >
> > 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?

No. Neither Tcl's "exec" command nor xterm's -e switch use the shell,
so you can't use shell syntax. You could use e.g.

	exec xterm -e /bin/sh -c $command

but that creates problems of its own (e.g. if the ultimate command
includes arguments which need to be quoted to prevent shell
substitutions etc).

> And there is also the problem (noted in Glynn's original e-mail) that e.g. 
> LD_LIBRARY_PATH is called different things on different platforms, e.g. 
> DYLD_LIBRARY_PATH on OS X. But this can be fixed by dynamically 
> substituting the correct variable name in at compile-time like is done for 
> lib/init/init.sh

Yep.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list