2 .\" Copyright 1999 SuSE GmbH Nuernberg, Germany
3 .\" Author: Thorsten Kukuk <kukuk@suse.de>
5 .\" This program is free software; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of the
8 .\" License, or (at your option) any later version.
10 .\" This program is distributed in the hope that it will be useful,
11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 .\" General Public License for more details.
15 .\" You should have received a copy of the GNU General Public
16 .\" License along with this program; see the file COPYING. If not,
17 .\" write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 .\" Boston, MA 02111-1307, USA.
20 .\" Modified, 6 May 2002, Michael Kerrisk, <mtk.manpages@gmail.com>
21 .\" Change listed order of /usr/lib and /lib
23 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
24 .\" Translated Sat May 23 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
25 .\" Updated & Modified Tue Sep 14 1999 by NAKANO Takeo
26 .\" Updated & Modified Mon Jun 4 20:13:57 JST 2001
27 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
29 .\"WORD: verbose mode ¾ÜºÙɽ¼¨¥â¡¼¥É
30 .\"WORD: quiet mode ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É
32 .TH LDCONFIG 8 2009-04-15 "GNU" "Linux Programmer's Manual"
35 .\"O /sbin/ldconfig \- configure dynamic linker run-time bindings
36 /sbin/ldconfig \- ưŪ¥ê¥ó¥«¤Ë¤è¤ë¼Â¹Ô»þ¤Î·ë¹ç´Ø·¸¤òÀßÄꤹ¤ë
70 .\"O creates the necessary links and cache to the most recent shared
71 .\"O libraries found in the directories specified on the command line,
73 .\"O .IR /etc/ld.so.conf ,
74 .\"O and in the trusted directories
79 ¤ÏºÇ¿·¤Î¶¦Í¥é¥¤¥Ö¥é¥ê¤ËÂФ·¤ÆɬÍפʥê¥ó¥¯¤òºîÀ®¤·¤¿¤ê¡¢
80 ¥é¥¤¥Ö¥é¥ê¤ò¥¥ã¥Ã¥·¥å¤·¤¿¤ê¤¹¤ë¡£
81 ¥é¥¤¥Ö¥é¥ê¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ä
83 ¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ä¡¢¶¦Í¥é¥¤¥Ö¥é¥ê¤¬
84 Ä̾ïÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
85 .RI ( /lib " ¤È " /usr/lib )
87 .\"O The cache is used by the run-time linker,
90 .\"O .IR ld-linux.so .
91 ¥¥ã¥Ã¥·¥å¤Ï¼Â¹Ô»þ¥ê¥ó¥«
97 .\"O checks the header and filenames of the libraries it encounters when
98 .\"O determining which versions should have their links updated.
100 ¤Ï½èÍý¤¹¤ë¥é¥¤¥Ö¥é¥ê¤Î¥Ø¥Ã¥ÀÉôʬ¤È¥Õ¥¡¥¤¥ë̾¤ò¥Á¥§¥Ã¥¯¤·¡¢
101 ¤É¤Î¥Ð¡¼¥¸¥ç¥ó¤ËÂФ·¤Æ¥ê¥ó¥¯¤ò¹¹¿·¤¹¤Ù¤¤«¤òȽÃǤ¹¤ë¡£
104 .\"O will attempt to deduce the type of ELF libs (i.e., libc5 or libc6/glibc)
105 .\"O based on what C libs, if any, the library was linked against.
106 .\"O .\" The following sentence looks suspect
107 .\"O .\" (perhaps historical cruft) -- MTK, Jul 2005
108 .\"O .\" Therefore, when making dynamic libraries,
109 .\"O .\" it is wise to explicitly link against libc (use \-lc).
111 ¤Ï ELF ¥é¥¤¥Ö¥é¥ê¤Î¼ïÎà (libc5 ¤« libc6/glibc ¤«) ¤òȽÃǤ¹¤ë¤È¤¡¢
112 ¤½¤Î¥é¥¤¥Ö¥é¥ê¤¬¥ê¥ó¥¯¤·¤Æ¤¤¤ë C ¥é¥¤¥Ö¥é¥ê¤ò»²¹Í¤Ë¤¹¤ë¡£
113 .\" °Ê²¼¤Îʸ¤ÎÆâÍƤÏËÜÅö¤«¤É¤¦¤«µ¿¤ï¤·¤¤
114 .\" (¤ª¤½¤é¤¯²áµî¤Î°äʪ¤Ç¤¢¤í¤¦) -- MTK, Jul 2005
115 .\" ¤·¤¿¤¬¤Ã¤Æ¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤òºîÀ®¤¹¤ë¤È¤¤Ë¤Ï¡¢
116 .\" libc ¤ËÂФ¹¤ë¥ê¥ó¥¯¤ò (\-lc ¤ò¤Ä¤«¤Ã¤Æ) ÌÀ¼¨¤·¤Æ¤ª¤¯¤ÈÎɤ¤¡£
118 .\"O Some existing libs do not contain enough information to allow the deduction of
121 .\"O .I /etc/ld.so.conf
122 .\"O file format allows the specification of an expected type.
125 .\"O used for those ELF libs which we can not work out.
127 .\"O is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6.
128 .\"O (This syntax also works on the command line.)
135 ¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¥é¥¤¥Ö¥é¥ê¤ÎÃæ¤Ë¤Ï¡¢¼ïÎà¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë½¼Ê¬¤Ê
136 ¾ðÊ󤬴ޤޤì¤Æ¤¤¤Ê¤¤¤â¤Î¤â¤¢¤ë¡£
139 ¥Õ¥¡¥¤¥ë¤Ç¥é¥¤¥Ö¥é¥ê¤Î·Á¼°¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
140 ¤³¤ì¤Ï¶èÊÌÉÔǽ¤Ê ELF ¥é¥¤¥Ö¥é¥ê¡Ö¤À¤±¡×¤ËÍѤ¤¤ë¤â¤Î¤Ç¤¢¤ë¡£
141 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï "dirname=TYPE" ¤È¤¹¤ë¡£
142 ¤³¤³¤Ç TYPE ¤Ï libc4, libc5, libc6 ¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë
143 (¤³¤Î½ñ¼°¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤â»È¤¨¤ë)¡£
144 ¡Ö¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤¡×¡£
146 ¥ª¥×¥·¥ç¥ó¤â¸«¤Æ¤ª¤¯¤³¤È¡£
148 .\"O should normally be run by the superuser as it may require write
149 .\"O permission on some root owned directories and files.
151 ¤ÏÄ̾凉¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¸¢¸Â¤Ç¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
152 root ¤¬½êͤ·¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤¹þ¤ß¸¢¸Â¤¬
153 ɬÍפˤʤ뤫¤é¤Ç¤¢¤ë¡£
159 .\"O Print current version number, the name of each directory as it
160 .\"O is scanned, and any links that are created.
161 .\"O Overrides quiet mode.
163 ¸½ºß¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
164 ¤Þ¤¿¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¥¹¥¥ã¥ó¤·¡¢
165 ¿·¤·¤¤¥ê¥ó¥¯¤òÀ¸À®¤¹¤ë¤¿¤Ó¤Ë¡¢¤½¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
166 ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É¤ò¾å½ñ¤¤¹¤ë¡£
169 .\"O Only process directories specified on the command line.
170 .\"O Don't process the trusted directories
174 .\"O nor those specified in
175 .\"O .IR /etc/ld.so.conf .
179 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤ò½èÍý¤¹¤ë¡£
180 Ä̾ﶦͥ饤¥Ö¥é¥ê¤¬ÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
181 .RI ( /lib " ¤È " /usr/lib )
184 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ï½èÍý¤·¤Ê¤¤¡£
190 .\"O Don't rebuild the cache.
193 .\"O is also specified, links are still updated.
194 ¥¥ã¥Ã¥·¥å¤òºÆ¹½À®¤·¤Ê¤¤¡£
197 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥ê¥ó¥¯¤Î¤Û¤¦¤Ï¹¹¿·¤µ¤ì¤ë¡£
200 .\"O Don't update links.
203 .\"O is also specified, the cache is still rebuilt.
206 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥¥ã¥Ã¥·¥å¤Î¤Û¤¦¤ÏºÆ¹½À®¤µ¤ì¤ë¡£
212 .\"O .IR /etc/ld.so.conf .
222 .\"O .IR /etc/ld.so.cache .
229 .\"O Change to and use
231 .\"O as the root directory.
233 ¤Ë¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤·¡¢¤³¤³¤ò¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤ÆÍѤ¤¤ë¡£
237 .\"O Manually link individual libraries.
238 .\"O Intended for use by experts only.
239 ¥é¥¤¥Ö¥é¥ê¥â¡¼¥É¡£¤½¤ì¤¾¤ì¤Î¥é¥¤¥Ö¥é¥ê¤ò¼êÆ°¤Ç¥ê¥ó¥¯¤¹¤ë¡£
240 ½ÏÎý¼Ô¤Î¤ß¤¬ÍѤ¤¤ë¤Ù¤¤Ç¤¢¤ë¡£
243 .\"O Print the lists of directories and candidate libraries stored in
244 .\"O the current cache.
245 ¸½ºß¤Î¥¥ã¥Ã¥·¥å¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¤È¡¢
246 ¥é¥¤¥Ö¥é¥ê¤Î¸õÊä¤òɽ¼¨¤¹¤ë¡£
252 .\"O run-time linker/loader
253 ¼Â¹Ô»þ¥ê¥ó¥«/¥í¡¼¥À¡¼¡£
256 .\"O File containing a list of colon, space, tab, newline, or comma-spearated
257 .\"O directories in which to search for libraries.
258 ¥³¥í¥ó¡¦¥¹¥Ú¡¼¥¹¡¦¥¿¥Ö¡¦²þ¹Ô¡¦¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¡£
259 ¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥é¥¤¥Ö¥é¥ê¤¬¸¡º÷¤µ¤ì¤ë¡£
262 .\"O File containing an ordered list of libraries found in the directories
264 .\"O .IR /etc/ld.so.conf ,
265 .\"O as well as those found in
270 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥é¥¤¥Ö¥é¥ê¡¢¤ª¤è¤Ó
274 ¤Ë¤¢¤ë¥é¥¤¥Ö¥é¥ê¤Î½ç½øÉÕ¤¥ê¥¹¥È¡£