Dynamic link library management commands using linux's ldconfig commands
This article mainly introduces the use of linux ldconfig command dynamic link library management command, the text is very detailed, has a certain reference value, interested friends must read!
The ldconfig command searches for shareable dynamic link libraries in the default search directories/lib and/usr/lib, as well as in the dynamic library configuration file/etc/ld.so.conf, to create the connections and cache files required by the dynamic loader (ld.so).
The cache file defaults to/etc/ld.so.cache, which stores a list of sorted DLL names. In order to make the DLL shared by the system, you need to run the DLL management command ldconfig, which is stored in the/sbin directory.
ldconfig is usually run at system startup, but manually when a user installs a new dynamic link library.
Syntax format: ldconfig [parameters]
Common parameters:
Reference Example
Execute dynamic link library management commands:
[root@linuxcool ~]# sudo ldconfig
Append the library file/usr/local/mysql/lib to the/etc/ld.so.conf file:
[root@linuxcool ~]# echo "/usr/local/mysql/lib" >>/etc/ld.so.conf[root@linuxcool ~]# ldconfig -v | grep mysql
Scan the directories specified on the command line:
[root@linuxcool ~]# ldconfig -n /linuxcool
Do not update links to files:
[root@linuxcool ~]# ldconfig -X The above is all the contents of using linux ldconfig command dynamic link library management command, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!