Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ldconfig command of Linux

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to use the ldconfig command of Linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The main function of the Linux common command ldconfig command is to search the shared dynamic link library under the directory listed in the default search directory / lib and / usr/lib and the dynamic library configuration file / etc/ld.so.conf, and then create the connection and cache files needed by the dynamic loader (ld.so).

Syntax format: ldconfig [parameters]

Common parameters:-v displays the directory being scanned, the dynamic link library searched and the name of the connection created-n scans only the directory specified on the command line, not the default directory, nor the directory listed in the configuration file-N does not rebuild the cache file-X does not update the file connection-f CONF specifies that the configuration file of the dynamic link library is CONF The system defaults to / etc/ld.so.conf-C CACHE and specifies that the generated cache file is CACHE, and the default is / etc/ld.so.cache-r ROOT to change the root directory of the application to ROOT-l to enter expert mode to manually set the connection-p prints out the names of all shared libraries saved by the current cache file-c FORMAT specifies the format used by the cache file-V prints out the version information of ldconfig Then exit-- help prints out its help information, and then exits the reference instance to execute dynamic link library management commands:

[root@linux265 ~] # sudo ldconfig add library file / usr/local/mysql/lib to / etc/ld.so.conf file:

[root@linux265 ~] # echo "/ usr/local/mysql/lib" > > / etc/ld.so.conf [root@linux265 ~] # ldconfig-v | grep mysql "how to use the ldconfig command of Linux" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report