.TH ldconfig 8 "30 March 1995" .SH NAME ldconfig \- determine run-time link bindings .SH SYNOPSIS ldconfig [ .B \-DvnNX ] .IR directory \ ... .PD 0 .PP .PD ldconfig .B \-l [ .B \-Dv ] .IR library \ ... .PD 0 .PP .PD ldconfig .B \-p .SH DESCRIPTION .B ldconfig creates the necessary links and cache (for use by the run-time linker, .IR ld.so ) to the most recent shared libraries found in the directories specified on the command line, in the file .IR /etc/ld.so.conf , and in the trusted directory .RI ( /usr/lib ). .I ldconfig checks the header and file names of the DLL's it encounters when determining which versions should have their links updated. .PP .I 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. .SH OPTIONS .TP .B \-D Debug mode. Implies .B \-N and .BR \-X . .TP .B \-v Verbose mode. Print current version number, the name of each directory as it is scanned and any links that are created. .TP .B \-n Only process directories specified on the command line. Don't process the trusted directories .RI ( /usr/lib and .IR /lib ) nor those specified in .IR /etc/ld.so.conf . Implies .BR \-N . .TP .B \-N Don't rebuild the cache. Unless .B \-X is also specified, links are still updated. .TP .B \-X Don't update links. Unless .B \-N is also specified, the cache is still rebuilt. .TP .B \-l Library mode. Manually link individual libraries. Intended for use by experts only. .TP .B \-p Print the lists of directories and candidate libraries stored in the current cache. .SH EXAMPLES In the bootup file .I /etc/rc having the line .RS /etc/ldconfig -v .RE will set up the correct links for the shared binaries and rebuild the cache. .TP On the command line .RS # /etc/ldconfig -n /lib .RE as root after the installation of a new DLL, will properly update the shared library symbolic links in /lib. .SH FILES .PD 0 .TP 20 .B /lib/ld.so execution time linker/loader .TP 20 .B /etc/ld.so.conf File containing a list of colon, space, tab, newline, or comma spearated directories in which to search for libraries. .TP 20 .B /var/run/ld.so.cache File containing an ordered list of libraries found in the directories specified in .BR /etc/ld.so.conf . .TP .B lib*.so.version shared libraries .PD .SH SEE ALSO .BR ldd (1), .BR ld.so (8). .SH BUGS .LP .BR ldconfig 's functionality, in conjunction with .BR ld.so , is only available for executables compiled using libc version 4.4.3 or greater. .PP .BR ldconfig , being a user process, must be run manually and has no means of dynamically determining and relinking shared libraries for use by .BR ld.so when a new DLL is installed. .SH AUTHORS David Engel and Mitch D'Souza.