| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 | .TH ldconfig 8 "14 March 1998".SH NAMEldconfig \- determine run-time link bindings.SH SYNOPSISldconfig.RB [ \-DvqnNX ].RB [ \-f\ conf ].RB [ \-C\ cache ].RB [ \-r\ root ].IR directory \ ....PD 0.PP.PDldconfig.B \-l.RB [ \-Dvq ].IR library \ ....PD 0.PP.PDldconfig.B \-p.SH DESCRIPTION.B ldconfigcreates 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 specifiedon the command line, in the file.IR /etc/ld.so.conf ,and in the trusted directories.RI ( /usr/liband.IR /lib )..B ldconfigchecks the header and file names of the libraries it encounters whendetermining which versions should have their links updated..B ldconfigignores symbolic links when scanning for libraries. .PP.B ldconfigwill attempt to deduce the type of ELF libs (ie. libc5 or libc6/glibc)based on what C libs if any the library was linked against, therefore whenmaking dynamic libraries, it is wise to explicitly link against libc (use -lc)..PPSome 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 onlyused 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 legalunless they also have an expected type specifier..PP.B ldconfigshould 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 manuallywhenever new DLL's are installed..SH OPTIONS.TP.B \-DDebug mode.Implies.B \-Nand.BR \-X ..TP.B \-vVerbose mode.Print current version number, the name of each directory as itis scanned and any links that are created.Overrides quiet mode..TP.B \-qQuiet mode.Don't print warnings..TP.B \-nOnly process directories specified on the command line.Don't process the trusted directories.RI ( /usr/liband.IR /lib )nor those specified in.IR /etc/ld.so.conf .Implies.BR \-N ..TP.B \-NDon't rebuild the cache.Unless.B \-Xis also specified, links are still updated..TP.B \-XDon't update links.Unless.B \-Nis also specified, the cache is still rebuilt..TP.B \-f confUse.B confinstead of.IR /etc/ld.so.conf ..TP.B \-C cacheUse.B cacheinstead of.IR /etc/ld.so.cache ..TP.B \-r rootChange to and use.B rootas the root directory..TP.B \-lLibrary mode.Manually link individual libraries.Intended for use by experts only..TP.B \-pPrint the lists of directories and candidate libraries stored inthe current cache..SH EXAMPLESIn the bootup file.I /etc/rchaving the line.RS/sbin/ldconfig -v.REwill set up the correct links for the shared binaries and rebuildthe cache..TPOn the command line.RS# /sbin/ldconfig -n /lib.REas root after the installation of a new DLL, will properly update theshared library symbolic links in /lib..SH FILES.PD 0.TP 20.B /lib/ld.soexecution time linker/loader.TP 20.B /etc/ld.so.confFile containing a list of colon, space, tab, newline, or comma spearateddirectories in which to search for libraries..TP 20.B /etc/ld.so.cacheFile containing an ordered list of libraries found in the directoriesspecified in.BR /etc/ld.so.conf ..TP.B lib*.so.versionshared libraries.PD.SH SEE ALSO.BR ldd (1),.BR ld.so (8)..SH BUGS.LP.BR ldconfig 'sfunctionality, in conjunction with.BR ld.so ,is only available for executables compiled using libc version 4.4.3 or greater..PP.BR ldconfig ,being a user process, must be run manually and has no means of dynamicallydetermining and relinking shared libraries for use by.BR ld.sowhen a new DLL is installed..SH AUTHORSDavid Engel and Mitch D'Souza.
 |