source: chapter06/db.xml@ 2c69ed4

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 2c69ed4 was 2c69ed4, checked in by Matthew Burgess <matthew@…>, 17 years ago

Remove some chmod commands as newer upstream releases mean they are no longer necessary. Fixes #1953.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7918 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-db" role="wrap">
9 <?dbhtml filename="db.html"?>
10
11 <title>Berkeley DB-&db-version;</title>
12
13 <indexterm zone="ch-system-db">
14 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Berkeley DB package contains programs and utilities used by many
21 other applications for database related functions.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&db-ch6-sbu;</seg>
29 <seg>&db-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 <tip>
34 <title>Other Installation Possibilities</title>
35
36 <para>There are instructions to build this package in the BLFS book if you
37 need to build the RPC server or additional language bindings. The
38 additional language bindings will require additional packages to be
39 installed. See <ulink url="&blfs-root;view/svn/server/databases.html#db"/>
40 for suggested installation instructions.</para>
41
42 <para>Also, GDBM <emphasis>could</emphasis> be used in place of Berkeley
43 DB to satisfy Man-DB. However, since Berkeley DB is considered a core part
44 of the LFS build, it will not be listed as a dependency for any package in
45 the BLFS book. Likewise, many hours go into testing LFS with Berkeley DB
46 installed, not with GDBM. If you fully understand the risks versus
47 benefits of using GDBM and wish to use it anyway, see the BLFS
48 instructions located at <ulink
49 url="&blfs-root;view/svn/general/gdbm.html"/></para>
50
51 </tip>
52
53 </sect2>
54
55 <sect2 role="installation">
56 <title>Installation of Berkeley DB</title>
57
58 <para>Prepare Berkeley DB for compilation:</para>
59
60<screen><userinput>cd build_unix &amp;&amp;
61../dist/configure --prefix=/usr --enable-compat185 --enable-cxx</userinput></screen>
62
63 <variablelist>
64 <title>The meaning of the configure options:</title>
65
66 <varlistentry>
67 <term><parameter>--enable-compat185</parameter></term>
68 <listitem>
69 <para>This option enables building Berkeley DB 1.85 compatibility
70 API.</para>
71 </listitem>
72 </varlistentry>
73
74 <varlistentry>
75 <term><parameter>--enable-cxx</parameter></term>
76 <listitem>
77 <para>This option enables building C++ API libraries.</para>
78 </listitem>
79 </varlistentry>
80
81 </variablelist>
82
83 <para>Compile the package:</para>
84
85<screen><userinput>make</userinput></screen>
86
87 <para>It is not possible to test the package meaningfully, because
88 that would involve building TCL bindings. TCL bindings cannot be
89 built properly now because TCL is linked against Glibc in
90 <filename class="directory">/tools</filename>, not against Glibc in
91 <filename class="directory">/usr</filename>.</para>
92
93 <para>Install the package:</para>
94
95<screen><userinput>make docdir=/usr/share/doc/db-&db-version; install</userinput></screen>
96
97 <variablelist>
98 <title>The meaning of the make parameter:</title>
99
100 <varlistentry>
101 <term><parameter>docdir=...</parameter></term>
102 <listitem>
103 <para>This variable specifies the correct place for the
104 documentation.</para>
105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 <para>Fix the ownership of the installed documentation:</para>
111
112<screen><userinput>chown -Rv root:root /usr/share/doc/db-&db-version;</userinput></screen>
113
114 </sect2>
115
116 <sect2 id="contents-db" role="content">
117 <title>Contents of Berkeley DB</title>
118
119 <segmentedlist>
120 <segtitle>Installed programs</segtitle>
121 <segtitle>Installed libraries</segtitle>
122
123 <seglistitem>
124 <seg>db_archive, db_checkpoint, db_deadlock, db_dump, db_hotbackup,
125 db_load, db_printlog, db_recover, db_stat, db_upgrade, and db_verify</seg>
126 <seg>libdb.{so,ar}and libdb_cxx.r{o,ar}</seg>
127 </seglistitem>
128 </segmentedlist>
129
130 <variablelist>
131 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
132 <?dbfo list-presentation="list"?>
133 <?dbhtml list-presentation="table"?>
134
135 <varlistentry id="db_archive">
136 <term><command>db_archive</command></term>
137 <listitem>
138 <para>Prints the pathnames of log files that are no longer in use</para>
139 <indexterm zone="ch-system-db db_archive">
140 <primary sortas="b-db_archive">db_archive</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="db_checkpoint">
146 <term><command>db_checkpoint</command></term>
147 <listitem>
148 <para>A daemon used to monitor and checkpoint database logs</para>
149 <indexterm zone="ch-system-db db_checkpoint">
150 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="db_deadlock">
156 <term><command>db_deadlock</command></term>
157 <listitem>
158 <para>A daemon used to abort lock requests when deadlocks are
159 detected</para>
160 <indexterm zone="ch-system-db db_deadlock">
161 <primary sortas="b-db_deadlock">db_deadlock</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="db_dump">
167 <term><command>db_dump</command></term>
168 <listitem>
169 <para>Converts database files to a plain-text file format readable
170 by <command>db_load</command></para>
171 <indexterm zone="ch-system-db db_dump">
172 <primary sortas="b-db_dump">db_dump</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="db_hotbackup">
178 <term><command>db_hotbackup</command></term>
179 <listitem>
180 <para>Creates <quote>hot backup</quote> or <quote>hot failover</quote>
181 snapshots of Berkeley DB databases</para>
182 <indexterm zone="ch-system-db db_hotbackup">
183 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="db_load">
189 <term><command>db_load</command></term>
190 <listitem>
191 <para>Is used to create database files from plain-text files</para>
192 <indexterm zone="ch-system-db db_load">
193 <primary sortas="b-db_load">db_load</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="db_printlog">
199 <term><command>db_printlog</command></term>
200 <listitem>
201 <para>Converts database log files to human readable text</para>
202 <indexterm zone="ch-system-db db_printlog">
203 <primary sortas="b-db_printlog">db_printlog</primary>
204 </indexterm>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry id="db_recover">
209 <term><command>db_recover</command></term>
210 <listitem>
211 <para>Is used to restore a database to a consistent state after a
212 failure</para>
213 <indexterm zone="ch-system-db db_recover">
214 <primary sortas="b-db_recover">db_recover</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="db_stat">
220 <term><command>db_stat</command></term>
221 <listitem>
222 <para>Displays statistics for Berkeley databases</para>
223 <indexterm zone="ch-system-db db_stat">
224 <primary sortas="b-db_stat">db_stat</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="db_upgrade">
230 <term><command>db_upgrade</command></term>
231 <listitem>
232 <para>Is used to upgrade database files to a newer version of
233 Berkeley DB</para>
234 <indexterm zone="ch-system-db db_upgrade">
235 <primary sortas="b-db_upgrade">db_upgrade</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="db_verify">
241 <term><command>db_verify</command></term>
242 <listitem>
243 <para>Is used to run consistency checks on database files</para>
244 <indexterm zone="ch-system-db db_verify">
245 <primary sortas="b-db_verify">db_verify</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250
251 <varlistentry id="libdb">
252 <term><filename class="libraryfile">libdb.{so,a}</filename></term>
253 <listitem>
254 <para>Contains functions to manipulate database files from C
255 programs</para>
256 <indexterm zone="ch-system-db libdb">
257 <primary sortas="c-libdb">libdb</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="libdb_cxx">
263 <term><filename class="libraryfile">libdb_cxx.{so,a}</filename></term>
264 <listitem>
265 <para>Contains functions to manipulate database files from C++
266 programs</para>
267 <indexterm zone="ch-system-db libdb_cxx">
268 <primary sortas="c-libdb_cxx">libdb_cxx</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 </variablelist>
274
275 </sect2>
276
277</sect1>
Note: See TracBrowser for help on using the repository browser.