ldconfigSection: Maintenance Commands (8)
Updated: 30 September 2000
Return to Main Contents
NAMEldconfig - determine run-time link bindings
DESCRIPTIONldconfig creates the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated. ldconfig ignores symbolic links when scanning for libraries.
ldconfig will attempt to deduce the type of ELF libs (ie. libc5 or libc6/glibc) based on what C libs if any the library was linked against, therefore when making dynamic libraries, it is wise to explicitly link against libc (use -lc).
Some existing libs do not contain enough information to allow the deduction of their type, therefore the /etc/ld.so.conf file format allows the specification of an expected type. This is only used for those ELF libs which we can not work out. The format is like this "dirname=TYPE", where type can be libc4, libc5 or libc6. (This syntax also works on the command line). Spaces are not allowed. Also see the -p option.
Directory names containing an = are no longer legal unless they also have an expected type specifier.
ldconfig should normally be run by the super-user as it may require write permission on some root owned directories and files. It is normally run automatically at bootup, from /etc/rc, or manually whenever new DLL's are installed.
EXAMPLESIn the bootup file /etc/rc having the line
SEE ALSOldd(1), ld.so(8).
ldconfig's functionality, in conjunction with ld.so, is only available for executables compiled using libc version 4.4.3 or greater.
AUTHORSDavid Engel and Mitch D'Souza.
This document was created by man2html, using the manual pages.
Time: 23:31:01 GMT, March 03, 2024