Tech Support > Operating Systems > Linux / Variants > shared library path
shared library path
Posted by dpr on February 25th, 2004


What is the best way to add a path to a shared library by a user (not as
root, so no ldconfig, no editing of ldconfig.conf) ?

I known about LD_LIBRARY_PATH but I have been told it is a bad idea to
use it.

Thanks in advance.

Posted by Roger Leigh on February 26th, 2004


dpr <dpr@virtualway.com.br> writes:

LD_LIBRARY_PATH is the thing to use. There's no better choice.

Why were you told it was a bad idea? Its whole purpose is to override
the defaults.


--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Posted by Dan Espen on February 26th, 2004


Roger Leigh <${roger}@invalid.whinlatter.uklinux.net.invalid > writes:

Its bad to use for a lot of reasons.

Here is the first google hit on "LD_LIBRARY_PATH bad":

http://www.visi.com/~barr/ldpath.html

Better to install the application into a standard location,
or use -R during compile.

If you must set it, set it only for the program that needs it
in a shell wrapper.


Similar Posts