Proper use of LD_LIBRARY_PATH for Linux progs?
Alexander Leidinger
Alexander at Leidinger.net
Sat Dec 13 12:26:54 PST 2008
Quoting Bengt Ahlgren <bengta at sics.se> (from Fri, 12 Dec 2008 13:37:25 +0100):
> The reason is that the acroread launch script sets LD_LIBRARY_PATH
> which is propagated to its childs. See this PR:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/129553
> Question 2: what is the "proper" way to fix this problem?
> (specifically for acroread8, but also in general.)
Search the archive for the ports mailinglist, in the mail
"print/acroread8: LD_LIBRARY_PATH breaks helper programs" is a fix for
the problem.
In general: there's no general fix. It all depends why LD_LIBRARY_PATH
is used and what is done. There are multiple ways, some are
workarounds ("env LD_LIBRARY_PATH='' lpr ..." ), some (like the one
for acroread in the mail) are good fixes.
Bye,
Alexander.
--
Disclose classified information only when a NEED TO KNOW exists.
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-stable
mailing list