Copyright (C) 2000-2012 |
Manpages ldconfigSection: Maintenance Commands (8)Updated: 30 September 2000 Index Return to Main Contents NAMEldconfig - determine run-time link bindingsSYNOPSISldconfig [OPTION...]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. OPTIONS
EXAMPLESIn the bootup file /etc/rc having the line
FILES
SEE ALSOldd(1), ld.so(8).BUGSldconfig's functionality, in conjunction with ld.so, is only available for executables compiled using libc version 4.4.3 or greater. ldconfig, being a user process, must be run manually and has no means of dynamically determining and relinking shared libraries for use by ld.so when a new DLL is installed. AUTHORSDavid Engel and Mitch D'Souza.
IndexThis document was created by man2html, using the manual pages. Time: 02:41:00 GMT, April 26, 2024 |