OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / ld.so / draft / man8 / ldconfig.8
1 .\"
2 .\" This is a ja translation of man page in ld.so-1.9.9 archive
3 .\"
4 .\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved.
5 .\" Translated Sat May 23 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
6 .\" Updated & Modified Tue Sep 14 1999 by NAKANO Takeo 
7 .\"
8 .\"WORD:        verbose mode    ñÁÀå¥â¡¼¥É
9 .\"WORD:        quiet mode      ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É
10 .\"
11 .TH ldconfig 8 "14 March 1998"
12 .\"O .SH NAME
13 .\"O ldconfig \- determine run-time link bindings
14 .SH Ì¾Á°
15 ldconfig \- ¼Â¹Ô»þ¥ê¥ó¥¯¤Î·ë¹ç´Ø·¸¤ò·èÄꤹ¤ë
16 .\"O .SH SYNOPSIS
17 .SH ½ñ¼°
18 ldconfig
19 .RB [ \-DvqnNX ]
20 .RB [ \-f\ conf ]
21 .RB [ \-C\ cache ]
22 .RB [ \-r\ root ]
23 .IR directory \ ...
24 .PD 0
25 .PP
26 .PD
27 ldconfig
28 .B \-l
29 .RB [ \-Dvq ]
30 .IR library \ ...
31 .PD 0
32 .PP
33 .PD
34 ldconfig
35 .B \-p
36 .\"O .SH DESCRIPTION
37 .SH ÀâÌÀ
38 .\"O .B ldconfig
39 .\"O creates the necessary links and cache (for use by the run-time linker,
40 .\"O .IR ld.so )
41 .\"O to the most recent shared libraries found in the directories specified
42 .\"O on the command line, in the file
43 .\"O .IR /etc/ld.so.conf ,
44 .\"O and in the trusted directories
45 .\"O .RI ( /usr/lib
46 .\"O and
47 .\"O .IR /lib ).
48 .B ldcofig
49 ¤ÏºÇ¿·¤Î¶¦Í­¥é¥¤¥Ö¥é¥ê¤ËÂФ·¤ÆɬÍפʥê¥ó¥¯¤òºîÀ®¤·¤¿¤ê¡¢
50 ¥é¥¤¥Ö¥é¥ê¤ò¥­¥ã¥Ã¥·¥å¤·¤¿¤ê¤¹¤ë
51 (¥­¥ã¥Ã¥·¥å¤Ï¼Â¹Ô»þ¥ê¥ó¥«
52 .I ld.so
53 ¤¬ÍѤ¤¤ë)¡£
54 ¥é¥¤¥Ö¥é¥ê¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¤ä
55 .I /etc/ld.so.conf
56 ¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ä¡¢¶¦Í­¥é¥¤¥Ö¥é¥ê¤¬
57 Ä̾ïÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
58 .RI ( /usr/lib " ¤È " /lib )
59 ¤«¤é¸¡º÷¤µ¤ì¤ë¡£
60 .\"O .B ldconfig
61 .\"O checks the header and file names of the libraries it encounters when
62 .\"O determining which versions should have their links updated.
63 .\"O .B ldconfig
64 .\"O ignores symbolic links when scanning for libraries. 
65 .B ldconfig
66 ¤Ï½èÍý¤¹¤ë¥é¥¤¥Ö¥é¥ê¤Î¥Ø¥Ã¥ÀÉôʬ¤È¥Õ¥¡¥¤¥ë̾¤ò¥Á¥§¥Ã¥¯¤·¡¢
67 ¤É¤Î¥Ð¡¼¥¸¥ç¥ó¤ËÂФ·¤Æ¥ê¥ó¥¯¤ò¹¹¿·¤¹¤Ù¤­¤«¤òȽÃǤ¹¤ë¡£
68 .B ldconfig
69 ¤Ï¥é¥¤¥Ö¥é¥ê¤ò¸¡º÷¤¹¤ë¤È¤­¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò̵»ë¤¹¤ë¡£
70 .PP
71 .\"O .B ldconfig
72 .\"O will attempt to deduce the type of ELF libs (ie. libc5 or libc6/glibc)
73 .\"O based on what C libs if any the library was linked against, therefore when
74 .\"O making dynamic libraries, it is wise to explicitly link against libc (use -lc).
75 .B ldconfig
76 ¤Ï ELF ¥é¥¤¥Ö¥é¥ê¤Î¼ïÎà (libc5 ¤« libc6/glibc ¤«) ¤òȽÃǤ¹¤ë¤È¤­¡¢
77 ¤½¤Î¥é¥¤¥Ö¥é¥ê¤¬¥ê¥ó¥¯¤·¤Æ¤¤¤ë C ¥é¥¤¥Ö¥é¥ê¤ò»²¹Í¤Ë¤¹¤ë¡£
78 ¤·¤¿¤¬¤Ã¤Æ¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤òºîÀ®¤¹¤ë¤È¤­¤Ë¤Ï¡¢
79 libc ¤ËÂФ¹¤ë¥ê¥ó¥¯¤ò (\-lc ¤ò¤Ä¤«¤Ã¤Æ) ÌÀ¼¨¤·¤Æ¤ª¤¯¤ÈÎɤ¤¡£
80 .PP
81 .\"O Some existing libs do not contain enough information to allow the deduction of 
82 .\"O their type, therefore the 
83 .\"O .IR /etc/ld.so.conf 
84 .\"O file format allows the specification of an expected type.  This is 
85 .\"O .B only
86 .\"O used for those ELF libs which we can not work out. The format 
87 .\"O is like this "dirname=TYPE", where type can be libc4, libc5 or libc6.
88 .\"O (This syntax also works on the command line).  Spaces are 
89 .\"O .B not 
90 .\"O allowed.  Also see the 
91 .\"O .B -p 
92 .\"O option.
93 ¤¹¤Ç¤Ë¸ºß¤·¤Æ¤¤¤ë¥é¥¤¥Ö¥é¥ê¤ÎÃæ¤Ë¤Ï¡¢¼ïÎà¤ò¶èÊ̤¹¤ë¤¿¤á¤Ë½¼Ê¬¤Ê
94 ¾ðÊ󤬴ޤޤì¤Æ¤¤¤Ê¤¤¤â¤Î¤â¤¢¤ë¡£¤³¤Î¤¿¤á
95 .I /etc/ld.so.conf
96 ¥Õ¥¡¥¤¥ë¤Ç¥é¥¤¥Ö¥é¥ê¤Î·Á¼°¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
97 ¤³¤ì¤Ï¶èÊÌÉÔǽ¤Ê ELF ¥é¥¤¥Ö¥é¥ê\fB¤À¤±\fP¤ËÍѤ¤¤ë¤â¤Î¤Ç¤¢¤ë¡£
98 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï "dirname=TYPE" ¤Î¤è¤¦¤Ë¤¹¤ë¡£¤³¤³¤Ç TYPE ¤Ï
99 libc4, libc5, libc6 ¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë
100 (¤³¤Î½ñ¼°¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¤â»È¤¨¤ë)¡£\fB¥¹¥Ú¡¼¥¹¤òÆþ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤\fP¡£
101 .B \-p
102 ¥ª¥×¥·¥ç¥ó¤â¸«¤Æ¤ª¤¯¤³¤È¡£
103 .PP 
104 .\"O Directory names containing an
105 .\"O .B = are no longer legal
106 .\"O unless they also have an expected type specifier.
107 ̾Á°¤Ë
108 .B  =
109 ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ï¡¢·Á¼°»ØÄê¤ò¤·¤Ê¤¤¸Â¤ê
110 ÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¯¤Ê¤Ã¤¿¡£
111 .PP
112 .\"O .B ldconfig
113 .\"O should normally be run by the super-user as it may require write 
114 .\"O permission on some root owned directories and files.
115 .\"O It is normally run automatically at bootup, from /etc/rc, or manually
116 .\"O whenever new DLL's are installed.
117 .B ldconfig
118 ¤ÏÄ̾凉¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¸¢¸Â¤Ç¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
119 root ¤¬½êÍ­¤·¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Õ¥¡¥¤¥ë¤Ø¤Î½ñ¤­¹þ¤ß¸¢¸Â¤¬
120 ɬÍפˤʤ뤫¤é¤Ç¤¢¤ë¡£
121 .B ldconfig
122 ¤ÏÄ̾µ¯Æ°»þ¤Ë /etc/rc ¥¹¥¯¥ê¥×¥È¤«¤é¼«Æ°Åª¤Ë¼Â¹Ô¤µ¤ì¤ë¡£¤¿¤À¤·¿·¤·
123 ¤¤ DLL ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤È¤­¤Ë¤Ïɬ¤º¼êÆ°¤Ç¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
124 .\"O .SH OPTIONS
125 .SH ¥ª¥×¥·¥ç¥ó
126 .TP
127 .B \-D
128 .\"O Debug mode.
129 .\"O Implies
130 .\"O .B \-N
131 .\"O and
132 .\"O .BR \-X .
133 ¥Ç¥Ð¥Ã¥°¥â¡¼¥É¡£
134 .B \-N
135 ¤È
136 .B \-X
137 ¤¬°ÅÌۤΤ¦¤Á¤Ë»ØÄꤵ¤ì¤ë¡£
138 .TP
139 .B \-v
140 .\"O Verbose mode.
141 .\"O Print current version number, the name of each directory as it
142 .\"O is scanned and any links that are created.
143 .\"O Overrides quiet mode.
144 ñÁÀå¥â¡¼¥É¡£¸½ºß¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£¤Þ¤¿¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È
145 ¥ê¤ò¥¹¥­¥ã¥ó¤·¡¢¿·¤·¤¤¥ê¥ó¥¯¤òÀ¸À®¤¹¤ë¤¿¤Ó¤Ë¡¢¤½¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
146 ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É¤ò¾å½ñ¤­¤¹¤ë¡£
147 .TP
148 .B \-q
149 .\"O Quiet mode.
150 .\"O Don't print warnings.
151 ¥á¥Ã¥»¡¼¥¸ÍÞÀ©¥â¡¼¥É¡£
152 ·Ù¹ð¤òɽ¼¨¤·¤Ê¤¤¡£
153 .TP
154 .B \-n
155 .\"O Only process directories specified on the command line.
156 .\"O Don't process the trusted directories
157 .\"O .RI ( /usr/lib
158 .\"O and
159 .\"O .IR /lib )
160 .\"O nor those specified in
161 .\"O .IR /etc/ld.so.conf .
162 .\"O Implies
163 .\"O .BR \-N .
164 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¤ß¤ò½èÍý¤¹¤ë¡£Ä̾ﶦͭ¥é¥¤¥Ö¥é¥ê¤¬
165 ÃÖ¤«¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê
166 .RI ( /usr/lib " ¤È " /lib )
167 ¤ä
168 .I /etc/ld.so.conf
169 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ï½èÍý¤·¤Ê¤¤¡£°ÅÌۤΤ¦¤Á¤Ë
170 .B \-N
171 ¤¬»ØÄꤵ¤ì¤ë¡£
172 .TP
173 .B \-N
174 .\"O Don't rebuild the cache.
175 .\"O Unless
176 .\"O .B \-X
177 .\"O is also specified, links are still updated.
178 ¥­¥ã¥Ã¥·¥å¤òºÆ¹½À®¤·¤Ê¤¤¡£Æ±»þ¤Ë
179 .B \-X
180 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥ê¥ó¥¯¤Î¤Û¤¦¤Ï¹¹¿·¤µ¤ì¤ë¡£
181 .TP
182 .B \-X
183 .\"O Don't update links.
184 .\"O Unless
185 .\"O .B \-N
186 .\"O is also specified, the cache is still rebuilt.
187 ¥ê¥ó¥¯¤ò¹¹¿·¤·¤Ê¤¤¡£
188 .B \-N
189 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¡¢¥­¥ã¥Ã¥·¥å¤Î¤Û¤¦¤ÏºÆ¹½À®¤µ¤ì¤ë¡£
190 .TP
191 .B \-f conf
192 .\"O Use
193 .\"O .B conf
194 .\"O instead of
195 .\"O .IR /etc/ld.so.conf .
196 .B conf
197 ¤ò
198 .I /etc/ld.so.conf
199 ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¡£
200 .TP
201 .B \-C cache
202 .\"O Use
203 .\"O .B cache
204 .\"O instead of
205 .\"O .IR /etc/ld.so.cache .
206 .B cache
207 ¤ò
208 .I /etc/ld.so.cache
209 ¤ÎÂå¤ï¤ê¤ËÍѤ¤¤ë¡£
210 .TP
211 .B \-r root
212 .\"O Change to and use
213 .\"O .B root
214 .\"O as the root directory.
215 .B root
216 ¤Ë¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤òÊѹ¹¤·¡¢¤³¤³¤ò¥ë¡¼¥È¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤ÆÍѤ¤¤ë¡£
217 .TP
218 .B \-l
219 .\"O Library mode.
220 .\"O Manually link individual libraries.
221 .\"O Intended for use by experts only.
222 ¥é¥¤¥Ö¥é¥ê¥â¡¼¥É¡£¤½¤ì¤¾¤ì¤Î¥é¥¤¥Ö¥é¥ê¤ò¼êÆ°¤Ç¥ê¥ó¥¯¤¹¤ë¡£
223 ½ÏÎý¼Ô¤Î¤ß¤¬ÍѤ¤¤ë¤Ù¤­¤Ç¤¢¤ë¡£
224 .TP
225 .B \-p
226 .\"O Print the lists of directories and candidate libraries stored in
227 .\"O the current cache.
228 ¸½ºß¤Î¥­¥ã¥Ã¥·¥å¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¤È¡¢
229 ¥é¥¤¥Ö¥é¥ê¤Î¸õÊä¤òɽ¼¨¤¹¤ë¡£
230 .\"O .SH EXAMPLES
231 .SH Îã
232 .\"O In the bootup file
233 .\"O .I /etc/rc
234 .\"O having the line
235 µ¯Æ°¥Õ¥¡¥¤¥ë
236 .I /etc/rc
237 ¤Ë°Ê²¼¤Î¤è¤¦¤Ê¹Ô
238 .RS
239
240 /sbin/ldconfig -v
241
242 .RE
243 .\"O will set up the correct links for the shared binaries and rebuild
244 .\"O the cache.
245 ¤¬¤¢¤ë¤È¡¢¶¦Í­¥Ð¥¤¥Ê¥ê¤Ø¤ÎÀµ¤·¤¤¥ê¥ó¥¯¤¬À¸À®¤µ¤ì¡¢¥­¥ã¥Ã¥·¥å¤¬ºÆ¹½À®¤µ
246 ¤ì¤ë¡£
247 .TP
248 .\"O On the command line
249 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é
250 .RS
251
252 # /sbin/ldconfig -n /lib
253
254 .RE
255 .\"O as root after the installation of a new DLL, will properly update the
256 .\"O shared library symbolic links in /lib.
257 ¤ò root ¸¢¸Â¤Ç¼Â¹Ô¤¹¤ë¤È¡¢ /lib ¤Ë¿·¤·¤¯¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿ DLL ¤ËÂФ·
258 ¤Æ¡¢Àµ¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÀ¸À®¤¹¤ë¡£
259
260 .\"O .SH FILES
261 .SH ¥Õ¥¡¥¤¥ë
262 .PD 0
263 .TP 20
264 .B /lib/ld.so
265 .\"O execution time linker/loader
266 ¼Â¹Ô»þ¥ê¥ó¥«/¥í¡¼¥À¡¼¡£
267 .TP 20
268 .B /etc/ld.so.conf
269 .\"O File containing a list of colon, space, tab, newline, or comma spearated
270 .\"O directories in which to search for libraries.
271 ¥³¥í¥ó¡¦¥¹¥Ú¡¼¥¹¡¦¥¿¥Ö¡¦²þ¹Ô¡¦¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¡£
272 ¤½¤ì¤¾¤ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥é¥¤¥Ö¥é¥ê¤¬¸¡º÷¤µ¤ì¤ë¡£
273 .TP 20
274 .B /etc/ld.so.cache
275 .\"O File containing an ordered list of libraries found in the directories
276 .\"O specified in
277 .\"O .BR /etc/ld.so.conf .
278 .B /etc/ld.so.conf
279 ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ç¸«¤Ä¤«¤Ã¤¿¥é¥¤¥Ö¥é¥ê¤Î½ç½øÉÕ¤­¥ê¥¹¥È¡£
280 .TP
281 .B lib*.so.version
282 .\"O shared libraries
283 ¶¦Í­¥é¥¤¥Ö¥é¥ê¡£
284 .PD
285 .\"O .SH SEE ALSO
286 .SH ´ØÏ¢¹àÌÜ
287 .BR ldd (1),
288 .\"O .BR ld.so (8).
289 .BR ld.so (8)
290 .\"O .SH BUGS
291 .SH ¥Ð¥°
292 .LP
293 .\"O .BR ldconfig 's
294 .\"O functionality, in conjunction with
295 .\"O .BR ld.so ,
296 .\"O is only available for executables compiled using libc version 4.4.3 or greater.
297 .B ldconfig
298 ¤Î
299 .B ld.so
300 ¤Ë´ØÏ¢¤·¤¿µ¡Ç½¤Ï¡¢ libc ¥Ð¡¼¥¸¥ç¥ó 4.4.3 °Ê¾å¤Ç¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¼Â¹Ô¥Õ¥¡
301 ¥¤¥ë¤Ç¤·¤«ÍøÍѤǤ­¤Ê¤¤¡£
302 .PP
303 .\"O .BR ldconfig ,
304 .\"O being a user process, must be run manually and has no means of dynamically
305 .\"O determining and relinking shared libraries for use by
306 .\"O .BR ld.so
307 .\"O when a new DLL is installed.
308 .B ldconfig
309 ¤Ï¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Ê¤Î¤Ç¡¢¼êÆ°¤Ç¼Â¹Ô¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£¤Þ¤¿¿·¤¿¤Ê DLL 
310 ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¤È¤­¤Ë¤Ï¡¢¤½¤Î¥é¥¤¥Ö¥é¥ê¤ò
311 .B ld.so
312 ¤¬ÍøÍѤǤ­¤ë¤è¤¦¤Ë¶¦Í­¥é¥¤¥Ö¥é¥ê¤ÎºÆÄ´À°¤ä¥ê¥ó¥¯¤Î
313 Ä¥¤ê¤«¤¨¤ò¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤¬¡¢¤³¤ì¤òưŪ¤Ë¹Ô¤¦¼êÃʤϸºß¤·¤Ê¤¤¡£
314 .\"O .SH AUTHORS
315 .\"O David Engel and Mitch D'Souza.
316 .SH Ãø¼Ô
317 David Engel ¤È Mitch D'Souza¡£