source: server/databases/db.xml@ e257101

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e257101 was 4e7b1578, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to Berkeley DB-4.4.20

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5960 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.0 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 <!ENTITY db-download-http "http://downloads.sleepycat.com/db-&db-version;.tar.gz">
8 <!ENTITY db-download-ftp "ftp://ftp.sleepycat.com/releases/db-&db-version;.tar.gz">
9 <!ENTITY db-md5sum "d84dff288a19186b136b0daf7067ade3">
10 <!ENTITY db-size "7.9 MB">
11 <!ENTITY db-buildsize "66.7 MB (additional 100 MB to run parallel standard test suite)">
12 <!ENTITY db-time "1.4 SBU (builds all bindings, add an additional 145 SBU to run parallel standard test suite)">
13]>
14
15<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
16 <?dbhtml filename="db.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">db-&db-version;.tar</keyword>
23 <keyword role="ftpdir">db</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Berkeley DB-&db-version;</title>
28
29 <indexterm zone="db">
30 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Berkeley DB</title>
35
36 <para>The <application>Berkeley DB</application> package contains programs
37 and utilities used by many other applications for database related
38 functions. This package is also installed during LFS and may already exist
39 on your system. It is listed here in BLFS as well because you may need to
40 reinstall it if you need the additional language bindings or the RPC
41 server. If you do reinstall <application>Berkeley DB</application>, ensure
42 you use the &lfs-bdb-version; version used in the LFS book.</para>
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>Download (HTTP): <ulink url="&db-download-http;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download (FTP): <ulink url="&db-download-ftp;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download MD5 sum: &db-md5sum;</para>
54 </listitem>
55 <listitem>
56 <para>Download size: &db-size;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated disk space required: &db-buildsize;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated build time: &db-time;</para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
67
68 <bridgehead renderas="sect4">Optional</bridgehead>
69 <para role="optional"><xref linkend="tcl"/>,
70 <xref linkend="jdk"/>, and
71 <ulink url="http://www.gnu.org/software/sharutils/">sharutils</ulink>
72 (for the <command>uudecode</command> command)</para>
73
74 <para condition="html" role="usernotes">User Notes:
75 <ulink url="&blfs-wiki;/db"/></para>
76
77 </sect2>
78
79 <sect2 role="testing">
80 <title>Testing Berkeley DB</title>
81
82 <para>You may want to skip ahead to <xref linkend="bdb-installation"/>. The
83 test suite can take up to 150 SBUs and has a few bugs causing a report of
84 <quote>Regression tests failed</quote>. However, running the test suite is
85 a very exhaustive test of your hardware, perhaps pushing your machine
86 harder (especially disk I/O) than it will ever see during production use.
87 Note that you must have <application>Tcl</application> installed to run the
88 test suite.</para>
89
90 <para>Build for the <application>Berkeley DB</application> test by running
91 the following commands:</para>
92
93<screen><userinput>cd build_unix &amp;&amp;
94../dist/configure --prefix=/usr \
95 --enable-test \
96 --enable-tcl \
97 --with-tcl=/usr/lib &amp;&amp;
98make</userinput></screen>
99
100 <para>To test the results, start <command>tclsh</command>:</para>
101
102<screen><userinput>tclsh</userinput></screen>
103
104 <para>From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>),
105 run:</para>
106
107<screen><userinput>source ../test/test.tcl
108run_parallel 5 run_std
109exit</userinput></screen>
110
111 <para>Clean up the source tree with the following command:</para>
112
113<screen><userinput>make realclean &amp;&amp;
114cd ..</userinput></screen>
115
116 </sect2>
117
118 <sect2 role="installation" id="bdb-installation">
119 <title>Installation of Berkeley DB</title>
120
121 <para>The installation commands below are identical to the commands used
122 in the LFS book. If you installed <application>Berkeley DB</application>
123 in LFS, and you don't add anything to the <command>configure</command>
124 script, you'll end up with exactly what you already have. The additional
125 parameters you can use are listed in the Command Explanations section
126 below. Install <application>Berkeley DB</application> by running the
127 following commands:</para>
128
129<screen><userinput>cd build_unix &amp;&amp;
130../dist/configure --prefix=/usr \
131 --enable-compat185 \
132 --enable-cxx &amp;&amp;
133make</userinput></screen>
134
135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
138chown -v root:root /usr/bin/db_* /usr/lib/libdb* /usr/include/db* &amp;&amp;
139chown -v root:root /usr/bin/berkeley_db_svc &amp;&amp;
140chown -v -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="commands">
145 <title>Command Explanations</title>
146
147 <para><command>cd build_unix &amp;&amp;
148 ../dist/configure --prefix=/usr...</command>:
149 This replaces the normal <command>./configure</command> command, as
150 <application>Berkeley DB</application> comes with various
151 build directories for different platforms.</para>
152
153 <para><parameter>--enable-compat185</parameter>: This switch enables
154 building the DB-1.85 compatibility API.</para>
155
156 <para><parameter>--enable-cxx</parameter>: This switch enables building
157 C++ API libraries.</para>
158
159 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
160 Enables <application>Tcl</application> support in DB and creates the
161 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
162
163 <para><parameter>--enable-java</parameter>: Enables
164 <application>Java</application> support in DB and creates the
165 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
166
167 <para><parameter>--enable-rpc</parameter>: Enables building the
168 <application>Berkeley DB</application> RPC server.</para>
169
170 <para><command>make docdir=/usr/share/doc/db-&db-version;
171 install</command>: This installs the documentation in
172 the correct location instead of
173 <filename class='directory'>/usr/docs</filename>.</para>
174
175 <para><command>chown -v root:root /usr/bin/berkeley_db_svc</command>:
176 This command changes the ownership of the RPC server program. It is only
177 required if you passed <parameter>--enable-rpc</parameter> to the
178 <command>configure</command> script.</para>
179
180 </sect2>
181
182 <sect2 role="content">
183 <title>Contents</title>
184
185 <para>Only the program and libraries not installed in LFS are listed here,
186 the others can be found at <ulink
187 url="&lfs-root;/chapter06/db.html#contents-db"/> as they were initially
188 installed during the building of LFS.</para>
189
190 <segmentedlist>
191 <segtitle>Installed Program</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Directory</segtitle>
194
195 <seglistitem>
196 <seg>berkeley_db_svc</seg>
197 <seg>libdb_java.{so,a} and libdb_tcl.{so,a}</seg>
198 <seg>/usr/share/doc/db-&db-version;</seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206
207 <varlistentry id="berkeley_db_svc">
208 <term><command>berkeley_db_svc</command></term>
209 <listitem>
210 <para>is the <application>Berkeley DB</application>
211 RPC server.</para>
212 <indexterm zone="db berkeley_db_svc">
213 <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <!-- These are left in so that if LFS ever dumps BDB, it is easy to
219 restore this information
220
221 <varlistentry id="db_archive">
222 <term><command>db_archive</command></term>
223 <listitem>
224 <para>prints the pathnames of log files that are no longer in
225 use.</para>
226 <indexterm zone="db db_archive">
227 <primary sortas="b-db_archive">db_archive</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="db_checkpoint">
233 <term><command>db_checkpoint</command></term>
234 <listitem>
235 <para>is a daemon process used to monitor and checkpoint database
236 logs.</para>
237 <indexterm zone="db db_checkpoint">
238 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="db_deadlock">
244 <term><command>db_deadlock</command></term>
245 <listitem>
246 <para>is used to abort lock requests when deadlocks are
247 detected.</para>
248 <indexterm zone="db db_deadlock">
249 <primary sortas="b-db_deadlock">db_deadlock</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="db_dump">
255 <term><command>db_dump</command></term>
256 <listitem>
257 <para>converts database files to a flat file format readable by
258 <command>db_load</command>.</para>
259 <indexterm zone="db db_dump">
260 <primary sortas="b-db_dump">db_dump</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="db_load">
266 <term><command>db_load</command></term>
267 <listitem>
268 <para>is used to create database files from flat files created with
269 <command>db_dump</command>.</para>
270 <indexterm zone="db db_load">
271 <primary sortas="b-db_load">db_load</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="db_printlog">
277 <term><command>db_printlog</command></term>
278 <listitem>
279 <para>converts database log files to human readable text.</para>
280 <indexterm zone="db db_printlog">
281 <primary sortas="b-db_printlog">db_printlog</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="db_recover">
287 <term><command>db_recover</command></term>
288 <listitem>
289 <para>is used to restore a database to a consistent state after a
290 failure.</para>
291 <indexterm zone="db db_recover">
292 <primary sortas="b-db_recover">db_recover</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="db_stat">
298 <term><command>db_stat</command></term>
299 <listitem>
300 <para>displays database environment statistics.</para>
301 <indexterm zone="db db_stat">
302 <primary sortas="b-db_stat">db_stat</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="db_upgrade">
308 <term><command>db_upgrade</command></term>
309 <listitem>
310 <para>is used to upgrade database files to a newer version of
311 <application>Berkeley DB</application>.</para>
312 <indexterm zone="db db_upgrade">
313 <primary sortas="b-db_upgrade">db_upgrade</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="db_verify">
319 <term><command>db_verify</command></term>
320 <listitem>
321 <para>is used to run consistency checks on database files.</para>
322 <indexterm zone="db db_verify">
323 <primary sortas="b-db_verify">db_verify</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 -->
329
330 </variablelist>
331
332 </sect2>
333
334</sect1>
Note: See TracBrowser for help on using the repository browser.