OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man8 / ldconfig.8
1 .\" -*- nroff -*-
2 .\" Copyright 1999 SuSE GmbH Nuernberg, Germany
3 .\" Author: Thorsten Kukuk <kukuk@suse.de>
4 .\"
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.
9 .\"
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.
14 .\"
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.
19 .\"
20 .\" Modified, 6 May 2002, Michael Kerrisk, <mtk.manpages@gmail.com>
21 .\"   Change listed order of /usr/lib and /lib
22 .\"
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>
28 .\"
29 .\"WORD:        verbose mode    ¾ÜºÙɽ¼¨¥â¡¼¥É
30 .\"WORD:        quiet mode      ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É
31 .\"
32 .TH LDCONFIG 8 2009-04-15 "GNU" "Linux Programmer's Manual"
33 .\"O .SH NAME
34 .SH Ì¾Á°
35 .\"O /sbin/ldconfig \- configure dynamic linker run-time bindings
36 /sbin/ldconfig \- Æ°Åª¥ê¥ó¥«¤Ë¤è¤ë¼Â¹Ô»þ¤Î·ë¹ç´Ø·¸¤òÀßÄꤹ¤ë
37 .\"O .SH SYNOPSIS
38 .SH ½ñ¼°
39 .B /sbin/ldconfig
40 [
41 .B \-nNvXV
42 ]
43 [
44 .BR \-f\ conf
45 ]
46 [
47 .BR \-C\ cache
48 ]
49 [
50 .BR \-r\ root
51 ]
52 .IR directory \ ...
53 .PD 0
54 .PP
55 .PD
56 .B /sbin/ldconfig
57 .B \-l
58 [
59 .B \-v
60 ]
61 .IR library \ ...
62 .PD 0
63 .PP
64 .PD
65 .B /sbin/ldconfig
66 .B \-p
67 .\"O .SH DESCRIPTION
68 .SH ÀâÌÀ
69 .\"O .B 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,
72 .\"O in the file
73 .\"O .IR /etc/ld.so.conf ,
74 .\"O and in the trusted directories
75 .\"O .RI ( /lib
76 .\"O and
77 .\"O .IR /usr/lib ).
78 .B ldcofig
79 ¤ÏºÇ¿·¤Î¶¦Í­¥é¥¤¥Ö¥é¥ê¤ËÂФ·¤ÆɬÍפʥê¥ó¥¯¤òºîÀ®¤·¤¿¤ê¡¢
80 ¥é¥¤¥Ö¥é¥ê¤ò¥­¥ã¥Ã¥·¥å¤·¤¿¤ê¤¹¤ë¡£
81 ¥é¥¤¥Ö¥é¥ê¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ä
82 .I /etc/ld.so.conf
83 ¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ä¡¢¶¦Í­¥é¥¤¥Ö¥é¥ê¤¬
84 Ä̾ïÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
85 .RI ( /lib " ¤È " /usr/lib )
86 ¤«¤é¸¡º÷¤µ¤ì¤ë¡£
87 .\"O The cache is used by the run-time linker,
88 .\"O .I ld.so
89 .\"O or
90 .\"O .IR ld-linux.so .
91 ¥­¥ã¥Ã¥·¥å¤Ï¼Â¹Ô»þ¥ê¥ó¥«
92 .I ld.so
93 ¤Þ¤¿¤Ï
94 .I ld-linux.so
95 ¤Ë¤è¤Ã¤Æ»È¤ï¤ì¤ë¡£
96 .\"O .B ldconfig
97 .\"O checks the header and filenames of the libraries it encounters when
98 .\"O determining which versions should have their links updated.
99 .B ldconfig
100 ¤Ï½èÍý¤¹¤ë¥é¥¤¥Ö¥é¥ê¤Î¥Ø¥Ã¥ÀÉôʬ¤È¥Õ¥¡¥¤¥ë̾¤ò¥Á¥§¥Ã¥¯¤·¡¢
101 ¤É¤Î¥Ð¡¼¥¸¥ç¥ó¤ËÂФ·¤Æ¥ê¥ó¥¯¤ò¹¹¿·¤¹¤Ù¤­¤«¤òȽÃǤ¹¤ë¡£
102 .PP
103 .\"O .B ldconfig
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).
110 .B ldconfig
111 ¤Ï ELF ¥é¥¤¥Ö¥é¥ê¤Î¼ïÎà (libc5 ¤« libc6/glibc ¤«) ¤òȽÃǤ¹¤ë¤È¤­¡¢
112 ¤½¤Î¥é¥¤¥Ö¥é¥ê¤¬¥ê¥ó¥¯¤·¤Æ¤¤¤ë C ¥é¥¤¥Ö¥é¥ê¤ò»²¹Í¤Ë¤¹¤ë¡£
113 .\" °Ê²¼¤Îʸ¤ÎÆâÍƤÏËÜÅö¤«¤É¤¦¤«µ¿¤ï¤·¤¤
114 .\" (¤ª¤½¤é¤¯²áµî¤Î°äʪ¤Ç¤¢¤í¤¦) -- MTK, Jul 2005
115 .\" ¤·¤¿¤¬¤Ã¤Æ¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤òºîÀ®¤¹¤ë¤È¤­¤Ë¤Ï¡¢
116 .\" libc ¤ËÂФ¹¤ë¥ê¥ó¥¯¤ò (\-lc ¤ò¤Ä¤«¤Ã¤Æ) ÌÀ¼¨¤·¤Æ¤ª¤¯¤ÈÎɤ¤¡£
117 .PP
118 .\"O Some existing libs do not contain enough information to allow the deduction of
119 .\"O their type.
120 .\"O Therefore, the
121 .\"O .I /etc/ld.so.conf
122 .\"O file format allows the specification of an expected type.
123 .\"O This is
124 .\"O .I only
125 .\"O used for those ELF libs which we can not work out.
126 .\"O The format
127 .\"O is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6.
128 .\"O (This syntax also works on the command line.)
129 .\"O Spaces are
130 .\"O .I not
131 .\"O allowed.
132 .\"O Also see the
133 .\"O .B \-p
134 .\"O option.
135 ¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¥é¥¤¥Ö¥é¥ê¤ÎÃæ¤Ë¤Ï¡¢¼ïÎà¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë½¼Ê¬¤Ê
136 ¾ðÊ󤬴ޤޤì¤Æ¤¤¤Ê¤¤¤â¤Î¤â¤¢¤ë¡£
137 ¤³¤Î¤¿¤á
138 .I /etc/ld.so.conf
139 ¥Õ¥¡¥¤¥ë¤Ç¥é¥¤¥Ö¥é¥ê¤Î·Á¼°¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
140 ¤³¤ì¤Ï¶èÊÌÉÔǽ¤Ê ELF ¥é¥¤¥Ö¥é¥ê¡Ö¤À¤±¡×¤ËÍѤ¤¤ë¤â¤Î¤Ç¤¢¤ë¡£
141 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï "dirname=TYPE" ¤È¤¹¤ë¡£
142 ¤³¤³¤Ç TYPE ¤Ï libc4, libc5, libc6 ¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë
143 (¤³¤Î½ñ¼°¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤â»È¤¨¤ë)¡£
144 ¡Ö¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤¡×¡£
145 .B \-p
146 ¥ª¥×¥·¥ç¥ó¤â¸«¤Æ¤ª¤¯¤³¤È¡£
147 .\"O .B ldconfig
148 .\"O should normally be run by the superuser as it may require write
149 .\"O permission on some root owned directories and files.
150 .B ldconfig
151 ¤ÏÄ̾凉¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¸¢¸Â¤Ç¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
152 root ¤¬½êÍ­¤·¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤­¹þ¤ß¸¢¸Â¤¬
153 ɬÍפˤʤ뤫¤é¤Ç¤¢¤ë¡£
154 .\"O .SH OPTIONS
155 .SH ¥ª¥×¥·¥ç¥ó
156 .TP
157 .B \-v
158 .\"O Verbose mode.
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.
162 ¾ÜºÙɽ¼¨¥â¡¼¥É¡£
163 ¸½ºß¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
164 ¤Þ¤¿¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¥¹¥­¥ã¥ó¤·¡¢
165 ¿·¤·¤¤¥ê¥ó¥¯¤òÀ¸À®¤¹¤ë¤¿¤Ó¤Ë¡¢¤½¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
166 ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É¤ò¾å½ñ¤­¤¹¤ë¡£
167 .TP
168 .B \-n
169 .\"O Only process directories specified on the command line.
170 .\"O Don't process the trusted directories
171 .\"O .RI ( /lib
172 .\"O and
173 .\"O .IR /usr/lib )
174 .\"O nor those specified in
175 .\"O .IR /etc/ld.so.conf .
176 .\"O Implies
177 .\"O .BR \-N .
178
179 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤ò½èÍý¤¹¤ë¡£
180 Ä̾ﶦͭ¥é¥¤¥Ö¥é¥ê¤¬ÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
181 .RI ( /lib " ¤È " /usr/lib )
182 ¤ä
183 .I /etc/ld.so.conf
184 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ï½èÍý¤·¤Ê¤¤¡£
185 °ÅÌۤΤ¦¤Á¤Ë
186 .B \-N
187 ¤¬»ØÄꤵ¤ì¤ë¡£
188 .TP
189 .B \-N
190 .\"O Don't rebuild the cache.
191 .\"O Unless
192 .\"O .B \-X
193 .\"O is also specified, links are still updated.
194 ¥­¥ã¥Ã¥·¥å¤òºÆ¹½À®¤·¤Ê¤¤¡£
195 Ʊ»þ¤Ë
196 .B \-X
197 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥ê¥ó¥¯¤Î¤Û¤¦¤Ï¹¹¿·¤µ¤ì¤ë¡£
198 .TP
199 .B \-X
200 .\"O Don't update links.
201 .\"O Unless
202 .\"O .B \-N
203 .\"O is also specified, the cache is still rebuilt.
204 ¥ê¥ó¥¯¤ò¹¹¿·¤·¤Ê¤¤¡£
205 .B \-N
206 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥­¥ã¥Ã¥·¥å¤Î¤Û¤¦¤ÏºÆ¹½À®¤µ¤ì¤ë¡£
207 .TP
208 .B \-f conf
209 .\"O Use
210 .\"O .B conf
211 .\"O instead of
212 .\"O .IR /etc/ld.so.conf .
213 .B conf
214 ¤ò
215 .I /etc/ld.so.conf
216 ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¡£
217 .TP
218 .B \-C cache
219 .\"O Use
220 .\"O .B cache
221 .\"O instead of
222 .\"O .IR /etc/ld.so.cache .
223 .B cache
224 ¤ò
225 .I /etc/ld.so.cache
226 ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¡£
227 .TP
228 .B \-r root
229 .\"O Change to and use
230 .\"O .I root
231 .\"O as the root directory.
232 .I root
233 ¤Ë¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤·¡¢¤³¤³¤ò¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤ÆÍѤ¤¤ë¡£
234 .TP
235 .B \-l
236 .\"O Library mode.
237 .\"O Manually link individual libraries.
238 .\"O Intended for use by experts only.
239 ¥é¥¤¥Ö¥é¥ê¥â¡¼¥É¡£¤½¤ì¤¾¤ì¤Î¥é¥¤¥Ö¥é¥ê¤ò¼êÆ°¤Ç¥ê¥ó¥¯¤¹¤ë¡£
240 ½ÏÎý¼Ô¤Î¤ß¤¬ÍѤ¤¤ë¤Ù¤­¤Ç¤¢¤ë¡£
241 .TP
242 .B \-p
243 .\"O Print the lists of directories and candidate libraries stored in
244 .\"O the current cache.
245 ¸½ºß¤Î¥­¥ã¥Ã¥·¥å¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¤È¡¢
246 ¥é¥¤¥Ö¥é¥ê¤Î¸õÊä¤òɽ¼¨¤¹¤ë¡£
247 .\"O .SH FILES
248 .SH ¥Õ¥¡¥¤¥ë
249 .PD 0
250 .TP 20
251 .I /lib/ld.so
252 .\"O run-time linker/loader
253 ¼Â¹Ô»þ¥ê¥ó¥«/¥í¡¼¥À¡¼¡£
254 .TP 20
255 .I /etc/ld.so.conf
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 ¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥é¥¤¥Ö¥é¥ê¤¬¸¡º÷¤µ¤ì¤ë¡£
260 .TP 20
261 .I /etc/ld.so.cache
262 .\"O File containing an ordered list of libraries found in the directories
263 .\"O specified in
264 .\"O .IR /etc/ld.so.conf ,
265 .\"O as well as those found in
266 .\"O .I /lib
267 .\"O and
268 .\"O .IR /usr/lib .
269 .I /etc/ld.so.conf
270 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥é¥¤¥Ö¥é¥ê¡¢¤ª¤è¤Ó
271 .I /lib
272 ¤È
273 .I /usr/lib
274 ¤Ë¤¢¤ë¥é¥¤¥Ö¥é¥ê¤Î½ç½øÉÕ¤­¥ê¥¹¥È¡£
275 .PD
276 .\"O .SH SEE ALSO
277 .SH ´ØÏ¢¹àÌÜ
278 .BR ldd (1),
279 .BR ld.so (8)