source: server/databases/db.xml@ 3cb0c57

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

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #9

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

  • Property mode set to 100644
File size: 11.6 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 "ec58179a39695cab6512eee0db0d71b9">
10 <!ENTITY db-size "8.1 MB">
11 <!ENTITY db-buildsize "94 MB (additional 100 MB to run parallel standard test suite)">
12 <!ENTITY db-time "1.5 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 --enable-test \
95 --enable-tcl --with-tcl=/usr/lib &amp;&amp;
96make</userinput></screen>
97
98 <para>To test the results, start <command>tclsh</command>:</para>
99
100<screen><userinput>tclsh</userinput></screen>
101
102 <para>From the <command>tclsh</command> prompt (<prompt>%</prompt>),
103 run:</para>
104
105<screen><userinput><prompt>%</prompt>source ../test/test.tcl
106<prompt>%</prompt>run_parallel 5 run_std
107<prompt>%</prompt>exit</userinput></screen>
108
109 <para>Clean up the source tree with the following command:</para>
110
111<screen><userinput>make realclean &amp;&amp;
112cd ..</userinput></screen>
113
114 </sect2>
115
116 <sect2 role="installation" id="bdb-installation">
117 <title>Installation of Berkeley DB</title>
118
119 <para>Install <application>Berkeley DB</application> by running the
120 following commands:</para>
121
122<screen><userinput>cd build_unix &amp;&amp;
123../dist/configure --prefix=/usr \
124 --enable-compat185 \
125 --enable-cxx &amp;&amp;
126make</userinput></screen>
127
128 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
129
130<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
131chown -v root:root /usr/bin/db_* /usr/lib/libdb* /usr/include/db* &amp;&amp;
132chown -v root:root /usr/bin/berkeley_db_svc &amp;&amp;
133chown -v -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <para><command>cd build_unix &amp;&amp;
141 ../dist/configure --prefix=/usr...</command>:
142 This replaces the normal <command>./configure</command> command, as
143 <application>Berkeley DB</application> comes with various
144 build directories for different platforms.</para>
145
146 <para><parameter>--enable-compat185</parameter>: This switch enables
147 building the DB-1.85 compatibility API.</para>
148
149 <para><parameter>--enable-cxx</parameter>: This switch enables building
150 C++ API libraries.</para>
151
152 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
153 Enables <application>Tcl</application> support in DB and creates the
154 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
155
156 <para><parameter>--enable-java</parameter>: Enables
157 <application>Java</application> support in DB and creates the
158 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
159
160 <para><parameter>--enable-rpc</parameter>: Enables building the
161 <application>Berkeley DB</application> RPC server.</para>
162
163 <para><command>make docdir=/usr/share/doc/db-&db-version;
164 install</command>: This installs the documentation in
165 the correct location instead of
166 <filename class='directory'>/usr/docs</filename>.</para>
167
168 <para><command>chown -v root:root /usr/bin/berkeley_db_svc</command>:
169 This command changes the ownership of the RPC server program. It is only
170 required if you passed <parameter>--enable-rpc</parameter> to the
171 <command>configure</command> script.</para>
172
173 </sect2>
174
175 <sect2 role="content">
176 <title>Contents</title>
177
178 <para>Only the program and libraries not installed in LFS are listed here,
179 the others can be found at <ulink
180 url="&lfs-root;/chapter06/db.html#contents-db"/> as they were initially
181 installed during the building of LFS.</para>
182
183 <segmentedlist>
184 <segtitle>Installed Program</segtitle>
185 <segtitle>Installed Libraries</segtitle>
186 <segtitle>Installed Directory</segtitle>
187
188 <seglistitem>
189 <seg>berkeley_db_svc</seg>
190 <seg>libdb_java.{so,a} and libdb_tcl.{so,a}</seg>
191 <seg>/usr/share/doc/db-&db-version;</seg>
192 </seglistitem>
193 </segmentedlist>
194
195 <variablelist>
196 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
197 <?dbfo list-presentation="list"?>
198 <?dbhtml list-presentation="table"?>
199
200 <varlistentry id="berkeley_db_svc">
201 <term><command>berkeley_db_svc</command></term>
202 <listitem>
203 <para>is the <application>Berkeley DB</application>
204 RPC server.</para>
205 <indexterm zone="db berkeley_db_svc">
206 <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <!-- These are left in so that if LFS ever dumps BDB, it is easy to
212 restore this information
213
214 <varlistentry id="db_archive">
215 <term><command>db_archive</command></term>
216 <listitem>
217 <para>prints the pathnames of log files that are no longer in
218 use.</para>
219 <indexterm zone="db db_archive">
220 <primary sortas="b-db_archive">db_archive</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="db_checkpoint">
226 <term><command>db_checkpoint</command></term>
227 <listitem>
228 <para>is a daemon process used to monitor and checkpoint database
229 logs.</para>
230 <indexterm zone="db db_checkpoint">
231 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="db_deadlock">
237 <term><command>db_deadlock</command></term>
238 <listitem>
239 <para>is used to abort lock requests when deadlocks are
240 detected.</para>
241 <indexterm zone="db db_deadlock">
242 <primary sortas="b-db_deadlock">db_deadlock</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="db_dump">
248 <term><command>db_dump</command></term>
249 <listitem>
250 <para>converts database files to a flat file format readable by
251 <command>db_load</command>.</para>
252 <indexterm zone="db db_dump">
253 <primary sortas="b-db_dump">db_dump</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="db_load">
259 <term><command>db_load</command></term>
260 <listitem>
261 <para>is used to create database files from flat files created with
262 <command>db_dump</command>.</para>
263 <indexterm zone="db db_load">
264 <primary sortas="b-db_load">db_load</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="db_printlog">
270 <term><command>db_printlog</command></term>
271 <listitem>
272 <para>converts database log files to human readable text.</para>
273 <indexterm zone="db db_printlog">
274 <primary sortas="b-db_printlog">db_printlog</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="db_recover">
280 <term><command>db_recover</command></term>
281 <listitem>
282 <para>is used to restore a database to a consistent state after a
283 failure.</para>
284 <indexterm zone="db db_recover">
285 <primary sortas="b-db_recover">db_recover</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="db_stat">
291 <term><command>db_stat</command></term>
292 <listitem>
293 <para>displays database environment statistics.</para>
294 <indexterm zone="db db_stat">
295 <primary sortas="b-db_stat">db_stat</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="db_upgrade">
301 <term><command>db_upgrade</command></term>
302 <listitem>
303 <para>is used to upgrade database files to a newer version of
304 <application>Berkeley DB</application>.</para>
305 <indexterm zone="db db_upgrade">
306 <primary sortas="b-db_upgrade">db_upgrade</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="db_verify">
312 <term><command>db_verify</command></term>
313 <listitem>
314 <para>is used to run consistency checks on database files.</para>
315 <indexterm zone="db db_verify">
316 <primary sortas="b-db_verify">db_verify</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 -->
322
323 </variablelist>
324
325 </sect2>
326
327</sect1>
Note: See TracBrowser for help on using the repository browser.