Ldconfig the directory or some trusted directories specified in the directory or file/etc/ld.so.config described on the command line
The latest dynamic connection libraries (like/usr/lib,/lib) create the necessary connections and Shou save. The data stored by these Shou will be dynamically
Connectors are used by ld.so or ld-linux.so. Ldconfig will check the name and version number of the dynamic library file it encounters.
To determine if the connections for those dynamic libraries are to be updated.
Ldconfig will attempt to infer that the Elf type library (like Libc5, LIBC6/GLIBC) is based on that version of the C library. Of course, in creating
Dynamic library, it is best to explicitly specify the use of C library (using-LC)
The information provided by some existing dynamic libraries is not sufficient to enable ldconfig to infer their types. Therefore,/etc/ld.so.config
The file format allows for a clear description. This is only useful if we cannot compute the type of ELF library. The format of the file is "Dirname=type",
Type can be LIBC4, Libc5, Libc6. (This syntax can also be used on the command line). Spaces are forbidden. OK
See-P option. Ldconfig are typically used only by super administrators. Because it may modify some of the directories and files owned by root.
Options:
-v Verbose mode. Prints the current version, scanned directories, and created connections. Overwrite quiet mode.
-N processes only the directories specified on the command line. Do not process information catalogs (/lib, or/usr/lib) and in/etc/ld.so.config
The directory specified in the Implied-n option
-N does not reconstruct the Shou save. The connection will be updated unless the-X option is used.
-X does not update the connection. Shou save is updated unless the-n option is used.
-F Conf
Use conf instead of/etc/ld.so.conf
-C Cache
Use cache instead of/etc/ld.so.cache
-R Root
Convert to and use root
-L Library mode. Manually connect to a single library. It is recommended that the expert level be used.
-p prints directories and candidate libraries in Shou.
File:
/lib/ld.so Run-time Library Loader
/etc/ld.so.conf a list of directories separated by commas, spaces, tabs, line breaks, or quotes. LD will be in these directories
Find a connection library.
/etc/ld.so.cache
Contains all the connection libraries found in the directory specified in/etc/ld.so.conf. Stored sequentially.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.