source: chapter06/db.xml@ 232aa73

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.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 232aa73 was 232aa73, checked in by Jeremy Huntwork <jhuntwork@…>, 17 years ago

Upgrade to DB-4.6.19. Fixes #2051. Thanks to Matt Burgess for the patch.

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

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