ldconfig
时间:2006-08-13 来源:anima
ldconfig
ldconfig [options] directories
System administration command. Examine the libraries in the given directories, /etc/ld.so.conf, /usr/lib, and /lib; update links and cache where necessary. Usually run in startup files or after the installation of new shared libraries.
Options
-C filenameUse filename instead of /etc/ld.so.cache
-ffilenameUse filename instead of /etc/ld.so.conf
-lLibrary mode. Expect libraries as arguments, not directories. Manually link specified libraries.
-nSuppress examination of /usr/lib and /lib and reading of /etc/ld.so.conf; do not cache.
-NDo not cache; only link.
-pPrint all directories and candidate libraries in the cache. Used without arguments.
-vVerbose mode. Include version number, and announce each directory as it is scanned and links as they are created.
-XDo not link; only rebuild cache.
Files
/lib/ld.soLinker and loader.
/etc/ld.so.confList of directories that contain libraries.
/etc/ld.so.cacheList of the libraries found in those libraries mentioned in /etc/ld.so.conf.