ldconfig - Serbipunk/notes GitHub Wiki

https://man7.org/linux/man-pages/man8/ldconfig.8.html

ldconfig - configure dynamic linker run-time bindings

用法

https://linux.101hacks.com/unix/ldconfig/

       /sbin/ldconfig [-nNvXV] [-f conf] [-C cache] [-r root] directory...
       /sbin/ldconfig -l [-v] library...
       /sbin/ldconfig -p

ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line,

ldconfig会创建需要的动态库版本链接,根据1. comand line 提供的路径

in the file /etc/ld.so.conf,

  1. /etc/ld.so.conf

and in the trusted directories, /lib and /usr/lib

(on some 64-bit architectures such as x86-64, /lib and /usr/lib are the trusted directories for 32-bit libraries, while /lib64 and /usr/lib64 are used for 64-bit libraries).

  1. 在系统信任目录中