source: server/databases/db.xml@ ada64bf

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

Added four upstream patches to the Berkeley-DB instructions

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

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