]> git.pld-linux.org Git - packages/glibc.git/blame - ldconfig.8
added new crypt for glibc
[packages/glibc.git] / ldconfig.8
CommitLineData
a3b90b27 1.TH ldconfig 8 "14 March 1998"
2.SH NAME
3ldconfig \- determine run-time link bindings
4.SH SYNOPSIS
5ldconfig
6.RB [ \-DvqnNX ]
7.RB [ \-f\ conf ]
8.RB [ \-C\ cache ]
9.RB [ \-r\ root ]
10.IR directory \ ...
11.PD 0
12.PP
13.PD
14ldconfig
15.B \-l
16.RB [ \-Dvq ]
17.IR library \ ...
18.PD 0
19.PP
20.PD
21ldconfig
22.B \-p
23.SH DESCRIPTION
24.B ldconfig
25creates the necessary links and cache (for use by the run-time linker,
26.IR ld.so )
27to the most recent shared libraries found in the directories specified
28on the command line, in the file
29.IR /etc/ld.so.conf ,
30and in the trusted directories
31.RI ( /usr/lib
32and
33.IR /lib ).
34.B ldconfig
35checks the header and file names of the libraries it encounters when
36determining which versions should have their links updated.
37.B ldconfig
38ignores symbolic links when scanning for libraries.
39.PP
40.B ldconfig
41will attempt to deduce the type of ELF libs (ie. libc5 or libc6/glibc)
42based on what C libs if any the library was linked against, therefore when
43making dynamic libraries, it is wise to explicitly link against libc (use -lc).
44.PP
45Some existing libs do not contain enough information to allow the deduction of
46their type, therefore the
47.IR /etc/ld.so.conf
48file format allows the specification of an expected type. This is
49.B only
50used for those ELF libs which we can not work out. The format
51is like this "dirname=TYPE", where type can be libc4, libc5 or libc6.
52(This syntax also works on the command line). Spaces are
53.B not
54allowed. Also see the
55.B -p
56option.
57.PP
58Directory names containing an
59.B = are no longer legal
60unless they also have an expected type specifier.
61.PP
62.B ldconfig
63should normally be run by the super-user as it may require write
64permission on some root owned directories and files.
65It is normally run automatically at bootup, from /etc/rc, or manually
66whenever new DLL's are installed.
67.SH OPTIONS
68.TP
69.B \-D
70Debug mode.
71Implies
72.B \-N
73and
74.BR \-X .
75.TP
76.B \-v
77Verbose mode.
78Print current version number, the name of each directory as it
79is scanned and any links that are created.
80Overrides quiet mode.
81.TP
82.B \-q
83Quiet mode.
84Don't print warnings.
85.TP
86.B \-n
87Only process directories specified on the command line.
88Don't process the trusted directories
89.RI ( /usr/lib
90and
91.IR /lib )
92nor those specified in
93.IR /etc/ld.so.conf .
94Implies
95.BR \-N .
96.TP
97.B \-N
98Don't rebuild the cache.
99Unless
100.B \-X
101is also specified, links are still updated.
102.TP
103.B \-X
104Don't update links.
105Unless
106.B \-N
107is also specified, the cache is still rebuilt.
108.TP
109.B \-f conf
110Use
111.B conf
112instead of
113.IR /etc/ld.so.conf .
114.TP
115.B \-C cache
116Use
117.B cache
118instead of
119.IR /etc/ld.so.cache .
120.TP
121.B \-r root
122Change to and use
123.B root
124as the root directory.
125.TP
126.B \-l
127Library mode.
128Manually link individual libraries.
129Intended for use by experts only.
130.TP
131.B \-p
132Print the lists of directories and candidate libraries stored in
133the current cache.
134.SH EXAMPLES
135In the bootup file
136.I /etc/rc
137having the line
138.RS
139
140/sbin/ldconfig -v
141
142.RE
143will set up the correct links for the shared binaries and rebuild
144the cache.
145.TP
146On the command line
147.RS
148
149# /sbin/ldconfig -n /lib
150
151.RE
152as root after the installation of a new DLL, will properly update the
153shared library symbolic links in /lib.
154
155.SH FILES
156.PD 0
157.TP 20
158.B /lib/ld.so
159execution time linker/loader
160.TP 20
161.B /etc/ld.so.conf
162File containing a list of colon, space, tab, newline, or comma spearated
163directories in which to search for libraries.
164.TP 20
165.B /etc/ld.so.cache
166File containing an ordered list of libraries found in the directories
167specified in
168.BR /etc/ld.so.conf .
169.TP
170.B lib*.so.version
171shared libraries
172.PD
173.SH SEE ALSO
174.BR ldd (1),
175.BR ld.so (8).
176.SH BUGS
177.LP
178.BR ldconfig 's
179functionality, in conjunction with
180.BR ld.so ,
181is only available for executables compiled using libc version 4.4.3 or greater.
182.PP
183.BR ldconfig ,
184being a user process, must be run manually and has no means of dynamically
185determining and relinking shared libraries for use by
186.BR ld.so
187when a new DLL is installed.
188.SH AUTHORS
189David Engel and Mitch D'Souza.
This page took 0.138153 seconds and 4 git commands to generate.