1LDCONFIG(8)                Linux Programmer's Manual               LDCONFIG(8)
2
3
4

NAME

6       /sbin/ldconfig - configure dynamic linker run time bindings
7

SYNOPSIS

9       /sbin/ldconfig  [  -nNvXV ] [ -f conf ] [ -C cache ] [ -r root ] direc‐
10       tory ...
11       /sbin/ldconfig -l [ -v ] library ...
12       /sbin/ldconfig -p
13

DESCRIPTION

15       ldconfig creates the necessary links  and  cache  to  the  most  recent
16       shared  libraries  found  in  the  directories specified on the command
17       line, in the file /etc/ld.so.conf, and in the trusted directories (/lib
18       and  /usr/lib).  The cache is used by the run-time linker, ld.so or ld-
19       linux.so.  ldconfig checks the header and filenames of the libraries it
20       encounters  when  determining  which  versions  should have their links
21       updated.
22
23       ldconfig will attempt to deduce the type of  ELF  libs  (ie.  libc5  or
24       libc6/glibc)  based  on  what  C  libs,  if any, the library was linked
25       against.  Therefore, when making  dynamic  libraries,  it  is  wise  to
26       explicitly link against libc (use -lc).
27
28       Some  existing  libs  do  not  contain  enough information to allow the
29       deduction of their type. Therefore,  the  /etc/ld.so.conf  file  format
30       allows  the  specification  of an expected type.  This is only used for
31       those ELF libs which we can not work out. The format is "dirname=TYPE",
32       where  TYPE  can be libc4, libc5, or libc6.  (This syntax also works on
33       the command line.)  Spaces are not allowed.  Also see  the  -p  option.
34       ldconfig  should  normally  be  run  by the superuser as it may require
35       write permission on some root owned directories and files.
36

OPTIONS

38       -v     Verbose mode.  Print current version number, the  name  of  each
39              directory  as  it  is  scanned,  and any links that are created.
40              Overrides quiet mode.
41
42       -n     Only process directories specified on the command  line.   Don't
43              process  the  trusted  directories (/lib and /usr/lib) nor those
44              specified in /etc/ld.so.conf.  Implies -N.
45
46       -N     Don't rebuild the cache.  Unless -X is also specified, links are
47              still updated.
48
49       -X     Don't  update  links.  Unless -N is also specified, the cache is
50              still rebuilt.
51
52       -f conf
53              Use conf instead of /etc/ld.so.conf.
54
55       -C cache
56              Use cache instead of /etc/ld.so.cache.
57
58       -r root
59              Change to and use root as the root directory.
60
61       -l     Library mode. Manually link individual libraries.  Intended  for
62              use by experts only.
63
64       -p     Print the lists of directories and candidate libraries stored in
65              the current cache.
66
67

FILES

69       /lib/ld.so          run-time linker/loader
70       /etc/ld.so.conf     File containing a list of colon, space,  tab,  new‐
71                           line,  or  comma-separated  directories in which to
72                           search for libraries.
73       /etc/ld.so.cache    File containing an ordered list of libraries  found
74                           in the directories specified in /etc/ld.so.conf.
75
76
77
78GNU C Library                     2002-05-06                       LDCONFIG(8)
Impressum