On Friday 12 December 2003 11:24, Elliot Lee wrote:
On Fri, 12 Dec 2003, Gene C. wrote:
> One additional thought/question ... OK, so you have /lib - /lib64 and
> /usr/lib - /usr/lib64 ... how does a program which needs a library get
> the "right" one since they are named the same?
/sbin/ldconfig has to be the 64-bit version. This version knows how to
read info from both 32-bit and 64-bit libraries in lib and lib64 dirs.
The library info is written into /etc/ld.so.cache. The application's
dynamic linker (/{lib,lib64}/ld-linux*.so*) looks through ld.so.cache and
only pays attention to the libraries that match the architecture of the
application.
Aaah ... the magic explained ... now this is beginning to make sense. If
nobody has already done it (or gets to it sooner), maybe I will pull all this
good info (and some I am finding reading through the SUSE mailing lists) into
a faq or something. BUT, I want to get some real hardware experience first
[chomping at the bit waiting for my motherboard].
--
Gene