<br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 1:03 PM, Florin Iucha <span dir="ltr"><<a href="mailto:florin@iucha.net">florin@iucha.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Mon, Apr 04, 2011 at 01:46:55PM -0400, <a href="mailto:dutchman_mn@charter.net">dutchman_mn@charter.net</a> wrote:<br>
> A coworker asked me a question and I could not give a definitive answer.<br>
> For a LD_LIBRARY_PATH entry, does Linux search sub-directories<br>
> recursively? He is installing a database driver (Progress) on a CentOS<br>
> 5.3 and needs to point to some compat libraries. However, they are not<br>
> in a single directory but in both a top-level directory such as<br>
> /usr/lib/progress but also in /usr/lib/progress/dirA and<br>
> /usr/lib/progress/dirB. Would you have to point at all three<br>
> directories?<br>
<br>
</div></div>Yes, you have to list all directories. Just like with $PATH.<br>
<br>
Cheers,<br>
florin<br></blockquote><div><br>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...). <br>
<br>-Rob <br></div></div>