source: server/databases/db.xml@ 0aeb696

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 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

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