Debian Codegraph @

docs/installation/install.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>Chapter 2.  System Installation Notes</title>
7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
10 <link rel="up" href="index.html" title="Berkeley DB Installation and Build Guide" />
11 <link rel="prev" href="ch01s02.html" title="Supported Platforms" />
12 <link rel="next" href="install_multiple.html" title="Building with multiple versions of Berkeley DB" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">Chapter 2. 
22 System Installation Notes
23 </th>
24 </tr>
25 <tr>
26 <td width="20%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a> </td>
27 <th width="60%" align="center"> </th>
28 <td width="20%" align="right"> <a accesskey="n" href="install_multiple.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="chapter" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title"><a id="install"></a>Chapter 2. 
38 System Installation Notes
39 </h2>
40 </div>
41 </div>
42 </div>
43 <div class="toc">
44 <p>
45 <b>Table of Contents</b>
46 </p>
47 <dl>
48 <dt>
49 <span class="sect1">
50 <a href="install.html#install_file">File utility /etc/magic information</a>
51 </span>
52 </dt>
53 <dd>
54 <dl>
55 <dt>
56 <span class="sect2">
57 <a href="install.html#magic">Magic information</a>
58 </span>
59 </dt>
60 <dt>
61 <span class="sect2">
62 <a href="install.html#big-endian">Big-endian magic information</a>
63 </span>
64 </dt>
65 <dt>
66 <span class="sect2">
67 <a href="install.html#little-endian">Little-endian magic information</a>
68 </span>
69 </dt>
70 </dl>
71 </dd>
72 <dt>
73 <span class="sect1">
74 <a href="install_multiple.html">Building with multiple versions of Berkeley DB</a>
75 </span>
76 </dt>
77 </dl>
78 </div>
79 <div class="sect1" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h2 class="title" style="clear: both"><a id="install_file"></a>File utility /etc/magic information</h2>
84 </div>
85 </div>
86 </div>
87 <div class="toc">
88 <dl>
89 <dt>
90 <span class="sect2">
91 <a href="install.html#magic">Magic information</a>
92 </span>
93 </dt>
94 <dt>
95 <span class="sect2">
96 <a href="install.html#big-endian">Big-endian magic information</a>
97 </span>
98 </dt>
99 <dt>
100 <span class="sect2">
101 <a href="install.html#little-endian">Little-endian magic information</a>
102 </span>
103 </dt>
104 </dl>
105 </div>
106 <p>
107 The <code class="literal">file</code>(1) utility is a UNIX utility that
108 examines and classifies files, based on information found in its
109 database of file types, the /etc/magic file. The following
110 information may be added to your system's /etc/magic file to enable
111 <code class="literal">file</code>(1) to correctly identify Berkeley DB
112 database files.
113 </p>
114 <p>
115 The <code class="literal">file</code>(1) utility <code class="literal">magic</code>(5)
116 information for the standard System V UNIX implementation of the
117 <code class="literal">file</code>(1) utility is included in the Berkeley DB
118 distribution for both big-endian (for example, Sparc)
119 and little-endian (for example, x86) architectures.
120 See <a class="xref" href="install.html#big-endian" title="Big-endian magic information">Big-endian magic information</a>
121 and <a class="xref" href="install.html#little-endian" title="Little-endian magic information">Little-endian magic information</a>
122 respectively for this information.
123 </p>
124 <p>
125 The <code class="literal">file</code>(1) utility <code class="literal">magic</code>(5)
126 information for Release 3.X of Ian Darwin's implementation of the
127 file utility (as distributed by FreeBSD and most Linux
128 distributions) is included in the Berkeley DB distribution. This
129 <code class="literal">magic.txt</code> information is correct for
130 both big-endian and little-endian architectures. See the next
131 section for this information.
132 </p>
133 <div class="sect2" lang="en" xml:lang="en">
134 <div class="titlepage">
135 <div>
136 <div>
137 <h3 class="title"><a id="magic"></a>Magic information</h3>
138 </div>
139 </div>
140 </div>
141 <pre class="programlisting"># Berkeley DB
142 #
143 # Ian Darwin's file /etc/magic files: big/little-endian version.
144 #
145 # Hash 1.85/1.86 databases store metadata in network byte order.
146 # Btree 1.85/1.86 databases store the metadata in host byte order.
147 # Hash and Btree 2.X and later databases store the metadata in
148 # host byte order.
149
150 0 long 0x00061561 Berkeley DB
151 &gt;8 belong 4321
152 &gt;&gt;4 belong &gt;2 1.86
153 &gt;&gt;4 belong &lt;3 1.85
154 &gt;&gt;4 belong &gt;0 (Hash, version %d, native byte-order)
155 &gt;8 belong 1234
156 &gt;&gt;4 belong &gt;2 1.86
157 &gt;&gt;4 belong &lt;3 1.85
158 &gt;&gt;4 belong &gt;0 (Hash, version %d, little-endian)
159
160 0 belong 0x00061561 Berkeley DB
161 &gt;8 belong 4321
162 &gt;&gt;4 belong &gt;2 1.86
163 &gt;&gt;4 belong &lt;3 1.85
164 &gt;&gt;4 belong &gt;0 (Hash, version %d, big-endian)
165 &gt;8 belong 1234
166 &gt;&gt;4 belong &gt;2 1.86
167 &gt;&gt;4 belong &lt;3 1.85
168 &gt;&gt;4 belong &gt;0 (Hash, version %d, native byte-order)
169
170 0 long 0x00053162 Berkeley DB 1.85/1.86
171 &gt;4 long &gt;0 (Btree, version %d, native byte-order)
172 0 belong 0x00053162 Berkeley DB 1.85/1.86
173 &gt;4 belong &gt;0 (Btree, version %d, big-endian)
174 0 lelong 0x00053162 Berkeley DB 1.85/1.86
175 &gt;4 lelong &gt;0 (Btree, version %d, little-endian)
176
177 12 long 0x00061561 Berkeley DB
178 &gt;16 long &gt;0 (Hash, version %d, native byte-order)
179 12 belong 0x00061561 Berkeley DB
180 &gt;16 belong &gt;0 (Hash, version %d, big-endian)
181 12 lelong 0x00061561 Berkeley DB
182 &gt;16 lelong &gt;0 (Hash, version %d, little-endian)
183
184 12 long 0x00053162 Berkeley DB
185 &gt;16 long &gt;0 (Btree, version %d, native byte-order)
186 12 belong 0x00053162 Berkeley DB
187 &gt;16 belong &gt;0 (Btree, version %d, big-endian)
188 12 lelong 0x00053162 Berkeley DB
189 &gt;16 lelong &gt;0 (Btree, version %d, little-endian)
190
191 12 long 0x00042253 Berkeley DB
192 &gt;16 long &gt;0 (Queue, version %d, native byte-order)
193 12 belong 0x00042253 Berkeley DB
194 &gt;16 belong &gt;0 (Queue, version %d, big-endian)
195 12 lelong 0x00042253 Berkeley DB
196 &gt;16 lelong &gt;0 (Queue, version %d, little-endian)
197
198 12 long 0x00040988 Berkeley DB
199 &gt;16 long &gt;0 (Log, version %d, native byte-order)
200 12 belong 0x00040988 Berkeley DB
201 &gt;16 belong &gt;0 (Log, version %d, big-endian)
202 12 lelong 0x00040988 Berkeley DB
203 &gt;16 lelong &gt;0 (Log, version %d, little-endian) </pre>
204 </div>
205 <div class="sect2" lang="en" xml:lang="en">
206 <div class="titlepage">
207 <div>
208 <div>
209 <h3 class="title"><a id="big-endian"></a>Big-endian magic information</h3>
210 </div>
211 </div>
212 </div>
213 <pre class="programlisting"># Berkeley DB
214 #
215 # System V /etc/magic files: big-endian version.
216 #
217 # Hash 1.85/1.86 databases store metadata in network byte order.
218 # Btree 1.85/1.86 databases store the metadata in host byte order.
219 # Hash and Btree 2.X and later databases store the metadata in
220 # host byte order.
221
222 0 long 0x00053162 Berkeley DB 1.85/1.86 (Btree,
223 &gt;4 long 0x00000002 version 2,
224 &gt;4 long 0x00000003 version 3,
225 &gt;0 long 0x00053162 native byte-order)
226
227 0 long 0x62310500 Berkeley DB 1.85/1.86 (Btree,
228 &gt;4 long 0x02000000 version 2,
229 &gt;4 long 0x03000000 version 3,
230 &gt;0 long 0x62310500 little-endian)
231
232 12 long 0x00053162 Berkeley DB (Btree,
233 &gt;16 long 0x00000004 version 4,
234 &gt;16 long 0x00000005 version 5,
235 &gt;16 long 0x00000006 version 6,
236 &gt;16 long 0x00000007 version 7,
237 &gt;16 long 0x00000008 version 8,
238 &gt;16 long 0x00000009 version 9,
239 &gt;12 long 0x00053162 native byte-order)
240
241 12 long 0x62310500 Berkeley DB (Btree,
242 &gt;16 long 0x04000000 version 4,
243 &gt;16 long 0x05000000 version 5,
244 &gt;16 long 0x06000000 version 6,
245 &gt;16 long 0x07000000 version 7,
246 &gt;16 long 0x08000000 version 8,
247 &gt;16 long 0x09000000 version 9,
248 &gt;12 long 0x62310500 little-endian)
249
250 0 long 0x00061561 Berkeley DB
251 &gt;4 long &gt;2 1.86
252 &gt;4 long &lt;3 1.85
253 &gt;0 long 0x00061561 (Hash,
254 &gt;4 long 2 version 2,
255 &gt;4 long 3 version 3,
256 &gt;8 long 0x000004D2 little-endian)
257 &gt;8 long 0x000010E1 native byte-order)
258
259 12 long 0x00061561 Berkeley DB (Hash,
260 &gt;16 long 0x00000004 version 4,
261 &gt;16 long 0x00000005 version 5,
262 &gt;16 long 0x00000006 version 6,
263 &gt;16 long 0x00000007 version 7,
264 &gt;16 long 0x00000008 version 8,
265 &gt;16 long 0x00000009 version 9,
266 &gt;12 long 0x00061561 native byte-order)
267
268 12 long 0x61150600 Berkeley DB (Hash,
269 &gt;16 long 0x04000000 version 4,
270 &gt;16 long 0x05000000 version 5,
271 &gt;16 long 0x06000000 version 6,
272 &gt;16 long 0x07000000 version 7,
273 &gt;16 long 0x08000000 version 8,
274 &gt;16 long 0x09000000 version 9,
275 &gt;12 long 0x61150600 little-endian)
276
277 12 long 0x00042253 Berkeley DB (Queue,
278 &gt;16 long 0x00000001 version 1,
279 &gt;16 long 0x00000002 version 2,
280 &gt;16 long 0x00000003 version 3,
281 &gt;16 long 0x00000004 version 4,
282 &gt;16 long 0x00000005 version 5,
283 &gt;16 long 0x00000006 version 6,
284 &gt;16 long 0x00000007 version 7,
285 &gt;16 long 0x00000008 version 8,
286 &gt;16 long 0x00000009 version 9,
287 &gt;12 long 0x00042253 native byte-order)
288
289 12 long 0x53220400 Berkeley DB (Queue,
290 &gt;16 long 0x01000000 version 1,
291 &gt;16 long 0x02000000 version 2,
292 &gt;16 long 0x03000000 version 3,
293 &gt;16 long 0x04000000 version 4,
294 &gt;16 long 0x05000000 version 5,
295 &gt;16 long 0x06000000 version 6,
296 &gt;16 long 0x07000000 version 7,
297 &gt;16 long 0x08000000 version 8,
298 &gt;16 long 0x09000000 version 9,
299 &gt;12 long 0x53220400 little-endian)
300
301 12 long 0x00040988 Berkeley DB (Log,
302 &gt;16 long 0x00000001 version 1,
303 &gt;16 long 0x00000002 version 2,
304 &gt;16 long 0x00000003 version 3,
305 &gt;16 long 0x00000004 version 4,
306 &gt;16 long 0x00000005 version 5,
307 &gt;16 long 0x00000006 version 6,
308 &gt;16 long 0x00000007 version 7,
309 &gt;16 long 0x00000008 version 8,
310 &gt;16 long 0x00000009 version 9,
311 &gt;16 long 0x0000000a version 10,
312 &gt;16 long 0x0000000b version 11,
313 &gt;16 long 0x0000000c version 12,
314 &gt;16 long 0x0000000d version 13,
315 &gt;16 long 0x0000000e version 14,
316 &gt;16 long 0x0000000f version 15,
317 &gt;12 long 0x00040988 native byte-order)
318
319 12 long 0x88090400 Berkeley DB (Log,
320 &gt;16 long 0x01000000 version 1,
321 &gt;16 long 0x02000000 version 2,
322 &gt;16 long 0x03000000 version 3,
323 &gt;16 long 0x04000000 version 4,
324 &gt;16 long 0x05000000 version 5,
325 &gt;16 long 0x06000000 version 6,
326 &gt;16 long 0x07000000 version 7,
327 &gt;16 long 0x08000000 version 8,
328 &gt;16 long 0x09000000 version 9,
329 &gt;16 long 0x0a000000 version 10,
330 &gt;16 long 0x0b000000 version 11,
331 &gt;16 long 0x0c000000 version 12,
332 &gt;16 long 0x0d000000 version 13,
333 &gt;16 long 0x0e000000 version 14,
334 &gt;16 long 0x0f000000 version 15,
335 &gt;12 long 0x88090400 little-endian)</pre>
336 </div>
337 <div class="sect2" lang="en" xml:lang="en">
338 <div class="titlepage">
339 <div>
340 <div>
341 <h3 class="title"><a id="little-endian"></a>Little-endian magic information</h3>
342 </div>
343 </div>
344 </div>
345 <pre class="programlisting"># Berkeley DB
346 #
347 # System V /etc/magic files: little-endian version.
348 #
349 # Hash 1.85/1.86 databases store metadata in network byte order.
350 # Btree 1.85/1.86 databases store the metadata in host byte order.
351 # Hash and Btree 2.X and later databases store the metadata in
352 # host byte order.
353
354 0 long 0x00053162 Berkeley DB 1.85/1.86 (Btree,
355 &gt;4 long 0x00000002 version 2,
356 &gt;4 long 0x00000003 version 3,
357 &gt;0 long 0x00053162 native byte-order)
358
359 0 long 0x62310500 Berkeley DB 1.85/1.86 (Btree,
360 &gt;4 long 0x02000000 version 2,
361 &gt;4 long 0x03000000 version 3,
362 &gt;0 long 0x62310500 big-endian)
363
364 12 long 0x00053162 Berkeley DB (Btree,
365 &gt;16 long 0x00000004 version 4,
366 &gt;16 long 0x00000005 version 5,
367 &gt;16 long 0x00000006 version 6,
368 &gt;16 long 0x00000007 version 7,
369 &gt;16 long 0x00000008 version 8,
370 &gt;16 long 0x00000009 version 9,
371 &gt;12 long 0x00053162 native byte-order)
372
373 12 long 0x62310500 Berkeley DB (Btree,
374 &gt;16 long 0x04000000 version 4,
375 &gt;16 long 0x05000000 version 5,
376 &gt;16 long 0x06000000 version 6,
377 &gt;16 long 0x07000000 version 7,
378 &gt;16 long 0x08000000 version 8,
379 &gt;16 long 0x09000000 version 9,
380 &gt;12 long 0x62310500 big-endian)
381
382 0 long 0x61150600 Berkeley DB
383 &gt;4 long &gt;0x02000000 1.86
384 &gt;4 long &lt;0x03000000 1.85
385 &gt;0 long 0x00061561 (Hash,
386 &gt;4 long 0x02000000 version 2,
387 &gt;4 long 0x03000000 version 3,
388 &gt;8 long 0xD2040000 native byte-order)
389 &gt;8 long 0xE1100000 big-endian)
390
391 12 long 0x00061561 Berkeley DB (Hash,
392 &gt;16 long 0x00000004 version 4,
393 &gt;16 long 0x00000005 version 5,
394 &gt;16 long 0x00000006 version 6,
395 &gt;16 long 0x00000007 version 7,
396 &gt;16 long 0x00000008 version 8,
397 &gt;16 long 0x00000009 version 9,
398 &gt;12 long 0x00061561 native byte-order)
399
400 12 long 0x61150600 Berkeley DB (Hash,
401 &gt;16 long 0x04000000 version 4,
402 &gt;16 long 0x05000000 version 5,
403 &gt;16 long 0x06000000 version 6,
404 &gt;16 long 0x07000000 version 7,
405 &gt;16 long 0x08000000 version 8,
406 &gt;16 long 0x09000000 version 9,
407 &gt;12 long 0x61150600 big-endian)
408
409 12 long 0x00042253 Berkeley DB (Queue,
410 &gt;16 long 0x00000001 version 1,
411 &gt;16 long 0x00000002 version 2,
412 &gt;16 long 0x00000003 version 3,
413 &gt;16 long 0x00000004 version 4,
414 &gt;16 long 0x00000005 version 5,
415 &gt;16 long 0x00000006 version 6,
416 &gt;16 long 0x00000007 version 7,
417 &gt;16 long 0x00000008 version 8,
418 &gt;16 long 0x00000009 version 9,
419 &gt;12 long 0x00042253 native byte-order)
420
421 12 long 0x53220400 Berkeley DB (Queue,
422 &gt;16 long 0x01000000 version 1,
423 &gt;16 long 0x02000000 version 2,
424 &gt;16 long 0x03000000 version 3,
425 &gt;16 long 0x04000000 version 4,
426 &gt;16 long 0x05000000 version 5,
427 &gt;16 long 0x06000000 version 6,
428 &gt;16 long 0x07000000 version 7,
429 &gt;16 long 0x08000000 version 8,
430 &gt;16 long 0x09000000 version 9,
431 &gt;12 long 0x53220400 big-endian)
432
433 12 long 0x00040988 Berkeley DB (Log,
434 &gt;16 long 0x00000001 version 1,
435 &gt;16 long 0x00000002 version 2,
436 &gt;16 long 0x00000003 version 3,
437 &gt;16 long 0x00000004 version 4,
438 &gt;16 long 0x00000005 version 5,
439 &gt;16 long 0x00000006 version 6,
440 &gt;16 long 0x00000007 version 7,
441 &gt;16 long 0x00000008 version 8,
442 &gt;16 long 0x00000009 version 9,
443 &gt;16 long 0x0000000a version 10,
444 &gt;16 long 0x0000000b version 11,
445 &gt;16 long 0x0000000c version 12,
446 &gt;16 long 0x0000000d version 13,
447 &gt;16 long 0x0000000e version 14,
448 &gt;16 long 0x0000000f version 15,
449 &gt;12 long 0x00040988 native byte-order)
450
451 12 long 0x88090400 Berkeley DB (Log,
452 &gt;16 long 0x01000000 version 1,
453 &gt;16 long 0x02000000 version 2,
454 &gt;16 long 0x03000000 version 3,
455 &gt;16 long 0x04000000 version 4,
456 &gt;16 long 0x05000000 version 5,
457 &gt;16 long 0x06000000 version 6,
458 &gt;16 long 0x07000000 version 7,
459 &gt;16 long 0x08000000 version 8,
460 &gt;16 long 0x09000000 version 9,
461 &gt;16 long 0x0a000000 version 10,
462 &gt;16 long 0x0b000000 version 11,
463 &gt;16 long 0x0c000000 version 12,
464 &gt;16 long 0x0d000000 version 13,
465 &gt;16 long 0x0e000000 version 14,
466 &gt;16 long 0x0f000000 version 15,
467 &gt;12 long 0x88090400 big-endian) </pre>
468 </div>
469 </div>
470 </div>
471 <div class="navfooter">
472 <hr />
473 <table width="100%" summary="Navigation footer">
474 <tr>
475 <td width="40%" align="left"><a accesskey="p" href="ch01s02.html">Prev</a> </td>
476 <td width="20%" align="center"> </td>
477 <td width="40%" align="right"> <a accesskey="n" href="install_multiple.html">Next</a></td>
478 </tr>
479 <tr>
480 <td width="40%" align="left" valign="top">Supported Platforms </td>
481 <td width="20%" align="center">
482 <a accesskey="h" href="index.html">Home</a>
483 </td>
484 <td width="40%" align="right" valign="top"> Building with multiple versions of Berkeley DB</td>
485 </tr>
486 </table>
487 </div>
488 </body>
489 </html>