Just for interest.
The GNU dynamic linker "ld" has a compiled-in search path that it uses
to find shared libraries at run-time. Here's how to view it:
$ ld -verbose | grep SEARCH_DIR | sed 's#; #;\n#g'
SEARCH_DIR("/usr/x86_64-linux-gnu/lib64");
SEARCH_DIR("=/usr/local/lib/x86_64-linux-gnu");
SEARCH_DIR("=/usr/local/lib64");
SEARCH_DIR("=/lib/x86_64-linux-gnu");
SEARCH_DIR("=/lib64");
SEARCH_DIR("=/usr/lib/x86_64-linux-gnu");
SEARCH_DIR("=/usr/lib64");
SEARCH_DIR("=/usr/local/lib");
SEARCH_DIR("=/lib");
SEARCH_DIR("=/usr/lib");
This is on Ubuntu Natty 11.04. The "multiarch" directories (eg.
/lib/x86_64-linux-gnu) were added to the binutils recently:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=369064
Natty now installs libc here:
$ ls -l /lib*/{*/,}{libc.so.6,libc-*.so}
-rwxr-xr-x 1 root root 1417796 2011-04-11 23:27 /lib32/libc-2.13.so
lrwxrwxrwx 1 root root 12 2011-05-04 13:16 /lib32/libc.so.6 ->
libc-2.13.so
-rwxr-xr-x 1 root root 1638120 2011-04-11 23:26
/lib64/x86_64-linux-gnu/libc-2.13.so
lrwxrwxrwx 1 root root 12 2011-05-04 10:50
/lib64/x86_64-linux-gnu/libc.so.6 -> libc-2.13.so
-rwxr-xr-x 1 root root 1638120 2011-04-11 23:26
/lib/x86_64-linux-gnu/libc-2.13.so
lrwxrwxrwx 1 root root 12 2011-05-04 10:50
/lib/x86_64-linux-gnu/libc.so.6 -> libc-2.13.so
No /lib/libc.so.6 at all. You can see that I have the ia32-libs installed.
Douglas.
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users