On Mon, Apr 4, 2011 at 1:03 PM, Florin Iucha <florin at iucha.net> wrote:

> On Mon, Apr 04, 2011 at 01:46:55PM -0400, dutchman_mn at charter.net wrote:
> > A coworker asked me a question and I could not give a definitive answer.
> > For a LD_LIBRARY_PATH entry, does Linux search sub-directories
> > recursively?  He is installing a database driver (Progress) on a CentOS
> > 5.3 and needs to point to some compat libraries.  However, they are not
> > in a single directory but in both a top-level directory such as
> > /usr/lib/progress but also in /usr/lib/progress/dirA and
> > /usr/lib/progress/dirB.  Would you have to point at all three
> > directories?
>
> Yes, you have to list all directories.  Just like with $PATH.
>
> Cheers,
> florin
>

You can also use symlink trees to create one location that has references to
all of your shared libraries, but I'd just set up LD_LIBRARY_PATH
correctly.  Don't mess with rpaths unless you don't want flexibility or you
need things to work irregardless of the user environment. (rpaths only apply
if you are building from source...).

-Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20110404/20908fad/attachment.html>