|
ld.so.conf.d used to load Linux system dynamic library file:
In the / etc we will find the following three files
ld.so.conf.d
ld.so.conf
ld.so.cache
You can see the view ld.so.conf later is included in all profiles ld.so.conf.d
include ld.so.conf.d / *. conf
See ld.so.conf.d contents you can see a lot of profiles
[Root @ abctest mcrypt-2.6.8] # ll /etc/ld.so.conf.d/
total 16
-rw-r -. r-- 1 root root 17 Feb 9 2012 atlas-x86_64.conf
-r - r - r-- 1 root root 324 Jan 30 2013 kernel-2.6.32-358.el6.x86_64.conf.
-rw-r -. r-- 1 root root 17 Dec 5 2012 mysql-x86_64.conf
-rw-r -. r-- 1 root root 22 Jul 18 2011 qt-x86_64.conf
Check the configuration can be seen in the following configuration
[Root @ abctest mcrypt-2.6.8] # cat /etc/ld.so.conf.d/qt-x86_64.conf
/usr/lib64/qt-3.3/lib
I add a profile
12 [root @ abctest mcrypt-2.6.8] # vi /etc/ld.so.conf.d/userlocal.conf
/ Usr / local / lib
Check again have found a dynamic library can be found under the directory
[Root @ abctest mcrypt-2.6.8] # ldconfig -p | grep libmcrypt
libmcrypt.so.4 (libc6, x86-64) => /usr/local/lib/libmcrypt.so.4
libmcrypt.so (libc6, x86-64) => /usr/local/lib/libmcrypt.so
But I actual operation was not successful, but after adding /etc/ld.so.conf path to take effect.
Corresponding information is cached in the ld.so.cache
You can view by string ld.so.cache
If this software can not run the emergence can be viewed as dynamic libraries ldd command is missing the program fails to start
[Root @ abctest mcrypt-2.6.8] # ldd / sf_web / mysql / bin / mysql
linux-vdso.so.1 => (0x00007fff3b5fc000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003ff8200000)
librt.so.1 => /lib64/librt.so.1 (0x0000003ff8600000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003ff7e00000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f1380a06000)
libstdc ++. so.6 => /usr/lib64/libstdc++.so.6 (0x0000003ffbe00000)
libm.so.6 => /lib64/libm.so.6 (0x0000003ff8e00000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003ffca00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003ff7a00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003ff7600000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003ff9e00000) |
|
|
|