Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 938888b90dadfcbb18d3f5663bdb5f2f > files > 3

man-pages-3.50-1.mga3.src.rpm

.TH ldconfig 8 "30 October 2000"
.SH NAME
ldconfig \- configure dynamic linker run-time bindings
.SH SYNOPSIS
ldconfig
.RB [OPTION...]
.SH DESCRIPTION
.B ldconfig
creates the necessary links and cache (for use by the run-time linker,
.IR ld.so )
to the most recent shared libraries found in the directories specified
on the command line, in the file
.IR /etc/ld.so.conf ,
and in the trusted directories
.RI ( /usr/lib
and
.IR /lib ).
.B ldconfig
checks the header and file names of the libraries it encounters when
determining which versions should have their links updated.
.B ldconfig
ignores symbolic links when scanning for libraries.
.PP
.B ldconfig
will attempt to deduce the type of ELF libs (ie. libc 5.x or libc 6.x (glibc))
based on what C libraries if any the library was linked against, therefore when
making dynamic libraries, it is wise to explicitly link against libc (use -lc).
.B ldconfig
is capable of storing multiple ABI types of libraries into a single cache on
architectures which allow native running of multiple ABIs, like
ia32/ia64/x86_64 or sparc32/sparc64.
.PP
Some existing libs do not contain enough information to allow the deduction of
their type, therefore the
.IR /etc/ld.so.conf
file format allows the specification of an expected type.  This is
.B only
used for those ELF libs which we can not work out. The format
is like this "dirname=TYPE", where type can be libc4, libc5 or libc6.
(This syntax also works on the command line).  Spaces are
.B not
allowed. Also see the
.B -p
option.
.PP
Directory names containing an
.B =
are no longer legal unless they also have an expected type specifier.
.PP
.B ldconfig
should normally be run by the super-user as it may require write
permission on some root owned directories and files. If you use
.B -r
option to change the root directory, you don't have to be super-user though
as long as you have sufficient right to that directory tree.
.SH OPTIONS
.TP
.B \-v\ \-\-verbose
Verbose mode.
Print current version number, the name of each directory as it
is scanned and any links that are created.
.TP
.B \-n
Only process directories specified on the command line.
Don't process the trusted directories
.RI ( /usr/lib
and
.IR /lib )
nor those specified in
.IR /etc/ld.so.conf .
Implies
.BR \-N .
.TP
.B \-N
Don't rebuild the cache.
Unless
.B \-X
is also specified, links are still updated.
.TP
.B \-X
Don't update links.
Unless
.B \-N
is also specified, the cache is still rebuilt.
.TP
.B \-f conf
Use
.B conf
instead of
.IR /etc/ld.so.conf .
.TP
.B \-C cache
Use
.B cache
instead of
.IR /etc/ld.so.cache .
.TP
.B \-r root
Change to and use
.B root
as the root directory.
.TP
.B \-l
Library mode.
Manually link individual libraries.
Intended for use by experts only.
.TP
.B \-p\ \-\-print-cache
Print the lists of directories and candidate libraries stored in
the current cache.
.TP
.B \-c\ \-\-format=FORMAT
Use
.B FORMAT
for the cache file. Choices are old, new and compat (the default).
.TP
.B \-?\ \-\-help \-\-usage
Print usage information.
.TP
.B \-V\ \-\-version
Print version and exit.
.SH EXAMPLES
.RS
# /sbin/ldconfig -v
.RE
will set up the correct links for the shared binaries and rebuild
the cache.
.RS
# /sbin/ldconfig -n /lib
.RE
as root after the installation of a new shared library will properly update the
shared library symbolic links in /lib.
.SH FILES
.PD 0
.TP 20
.B /lib/ld-linux.so.*
execution time linker/loader
.TP 20
.B /etc/ld.so.conf
File containing a list of colon, space, tab, newline, or comma spearated
directories in which to search for libraries.
.TP 20
.B /etc/ld.so.cache
File containing an ordered list of libraries found in the directories
specified in
.BR /etc/ld.so.conf .
This file is not in human readable format, and is not intended to be
edited.
.TP
.B lib*.so.version
shared libraries
.PD
.SH SEE ALSO
.BR ldd (1),
.BR ld.so (8).
.SH BUGS
.LP
.BR ldconfig ,
being a user process, must be run manually and has no means of dynamically
determining and relinking shared libraries for use by
.BR ld.so
when a new shared library is installed.
.SH AUTHORS
Andreas Jaeger.
Manual page written by David Engel and Mitch D'Souza.