FreeBSD's ldconfig binary does not work the same as the Linux. When you entered ldconfig -v, you lost all your configuration information loaded from the hints file.
The ldconfig utility is used to prepare a set of hints for use by the dynamic linker to facilitate quick lookup of shared libraries available in multiple directories. It scans a set of built-in system directories. To fix the problem, type the following command:
# /etc/rc.d/ldconfig restartOR
# /etc/rc.d/ldconfig forcerestartTo list the current contents of the hints file on the screen, type:
# ldconfig -r
# ldconfig -r | lessSample Output:
/var/run/ld-elf.so.hints:/var/run/ld-elf.so.hints is default FreeBSD hints file for the ELF dynamic linker stored at /libexec/ directory.
search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/local/lib/mysql:/usr/local/lib/pth
0:-lc.7 => /lib/libc.so.7
1:-lcrypt.4 => /lib/libcrypt.so.4
....
....
......
237:-lpth.20 => /usr/local/lib/pth/libpth.so.20
238:-lpthread.20 => /usr/local/lib/pth/libpthread.so.20
No comments:
Post a Comment