cmd:ldconfig 

*Tags*: LD_LIBRARY_PATH

Conf file 

/etc/ld.so.conf

Usage 

# find where it is
ldconfig -p | grep -i libxfce.so
# include/update new dir?
ldconfig -nv /usr/lib/gtk/themes/engines
# show all
$ ldconfig -p
432 libs found in cache `/etc/ld.so.cache' (version 1.7.0)
        libz.so.1 (libc6) => /usr/lib/libz.so.1
        libz.so.1 (ELF) => /usr/i486-linux-libc5/lib/libz.so.1

Help 

ldconfig - determine run-time link bindings

SYNOPSIS ldconfig [-DvnNX] [-f conf] [-C cache] [-r root] directory … ldconfig -l [-Dv] library … ldconfig -p

DESCRIPTION ldconfig creates the necessary links and cache (for use by the run- time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). ldconfig checks the header and file names of the libraries it encoun- ters when determining which versions should have their links updated. ldconfig ignores symbolic links when scanning for libraries.

ldconfig  should  normally be run by the super-user as it may require
write permission on some root owned directories  and  files.   It  is
normally run automatically at bootup, from /etc/rc, or manually when-
ever new DLL's are installed.

OPTIONS -D Debug mode. Implies -N and -X.

-v     Verbose mode.  Print current version number, the name of  each
       directory as it is scanned and any links that are created.
-n     Only process directories specified on the command line.  Don't
       process the trusted directories (/usr/lib and /lib) nor  those
       specified in /etc/ld.so.conf.  Implies -N.
-p     Print the lists of directories and candidate libraries  stored
       in the current cache.

EXAMPLES

# /sbin/ldconfig -n /lib
as root after the installation of a new DLL, will properly update the
shared library symbolic links in /lib.

FILES /lib/ld.so execution time linker/loader /etc/ld.so.conf File containing a list of colon, space, tab, new- line, or comma spearated directories in which to search for libraries.

documented on: 2000.11.20 Mon 21:23:45