ldconfig(8) addresses two potential problems with shared libraries:
ldconfig solves these problems by:
ldconfig searches for latest major library versions in:Cache file is used by dynamic linker at run-time when resolving library names.
- all of the directories specified in /etc/ld.so.conf
- /lib
- /usr/lib
and updates a cache file, /etc/ld.so.cache, to contain a list of the latest major library versions, and their locations.
In order to work properly, ldconfig relies on the use of the
standard naming convention for shared libraries (i.e.,
libname.maj.min)
(C) 2006, Michael Kerrisk