source: server/databases/db.xml@ ffc584a3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ffc584a3 was ffc584a3, checked in by Randy McMurchy <randy@…>, 14 years ago

Updated to Berkeley-DB-4.8.26

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

  • Property mode set to 100644
File size: 13.6 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 <!ENTITY db-download-http "http://download-east.oracle.com/berkeley-db/db-&db-version;.tar.gz">
8 <!ENTITY db-download-ftp "&gentoo-ftp-repo;/db-&db-version;.tar.gz">
9 <!ENTITY db-md5sum "3476bac9ec0f3c40729c8a404151d5e3">
10 <!ENTITY db-size "22.8 MB">
11 <!ENTITY db-buildsize "250 MB (additional 100 MB to run parallel standard test suite)">
12 <!ENTITY db-time "1.9 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 <para>The <application>Berkeley DB</application> package contains programs
41 and utilities used by many other applications for database related
42 functions.</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">Additional Downloads</bridgehead>
67 <itemizedlist spacing="compact">
68 <listitem>
69 <para>Required patch: <ulink
70 url="http://www.oracle.com/technology/products/berkeley-db/db/update/&db-version;/patch.&db-version;.1"/></para>
71 </listitem>
72 <listitem>
73 <para>Required patch: <ulink
74 url="http://www.oracle.com/technology/products/berkeley-db/db/update/&db-version;/patch.&db-version;.2"/></para>
75 </listitem>
76 </itemizedlist> -->
77
78 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional"><xref linkend="tcl"/>,
82 <xref linkend="jdk"/>, and
83 <ulink url="http://www.gnu.org/software/sharutils/">sharutils</ulink>
84 (for the <command>uudecode</command> command)</para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/db"/></para>
88
89 </sect2>
90
91 <sect2 role="testing">
92 <title>Testing Berkeley DB</title>
93
94 <para>You may want to skip ahead to <xref linkend="bdb-installation"/>. The
95 test suite can take up to 150 SBUs and has a few bugs causing a report of
96 <quote>Regression tests failed</quote>. However, running the test suite is
97 a very exhaustive test of your hardware, perhaps pushing your machine
98 harder (especially disk I/O) than it will ever see during production use.
99 Note that you must have <application>Tcl</application> installed to run the
100 test suite.</para>
101
102 <para>Build for the <application>Berkeley DB</application> test by running
103 the following commands:</para>
104
105<screen><userinput>patch -Np0 -i ../patch.&db-version;.1 &amp;&amp;
106patch -Np0 -i ../patch.&db-version;.2 &amp;&amp;
107cd build_unix &amp;&amp;
108../dist/configure --prefix=/usr \
109 --enable-test \
110 --enable-tcl \
111 --with-tcl=/usr/lib &amp;&amp;
112make</userinput></screen>
113
114 <para>To test the results, start <command>tclsh</command>:</para>
115
116<screen><userinput>tclsh</userinput></screen>
117
118 <para>From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>),
119 run:</para>
120
121<screen><userinput>source ../test/test.tcl
122run_parallel 5 run_std
123exit</userinput></screen>
124
125 <para>Clean up the source tree with the following command:</para>
126
127<screen><userinput>make realclean &amp;&amp;
128cd ..</userinput></screen>
129
130 </sect2>
131
132 <sect2 role="installation" id="bdb-installation">
133 <title>Installation of Berkeley DB</title>
134
135 <!-- <para>The installation commands below are identical to the commands used
136 in the LFS book. If you installed <application>Berkeley DB</application>
137 in LFS, and you don't add anything to the <command>configure</command>
138 script, you'll end up with exactly what you already have. The additional
139 parameters you can use are listed in the Command Explanations section
140 below.</para> -->
141
142 <note>
143 <para>If you plan on installing <application>Berkeley DB</application>
144 with Java support, you should check the system for certain versions
145 of <xref linkend="jdk"/> and <xref linkend="gmime"/>. Specifically, if
146 <application>JDK</application>-6 Update X and the
147 <command>uudecode</command> program from the
148 <application>GMime</application> program is on the system, the build will
149 fail (unless you run the modified <command>./configure</command> command
150 shown below). You can run two commands (<command>javac -version</command>
151 and <command>uudecode --version</command>) to determine what versions are
152 installed. You can also download and run a shell script from
153 <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert
154 you to a non-working condition. If the identified programs exist on the
155 system, you must modify the
156 <command>./configure</command> command as shown below.</para>
157
158<screen><userinput>uudecode="no" ../dist/configure --(use the parameters shown below)</userinput></screen>
159 </note>
160
161 <para>Install <application>Berkeley DB</application> by running the
162 following commands:</para>
163
164<screen><userinput>cd build_unix &amp;&amp;
165../dist/configure --prefix=/usr \
166 --enable-compat185 \
167 --enable-cxx &amp;&amp;
168make</userinput></screen>
169
170 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
171
172<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
173chown -v -R root:root \
174 /usr/bin/berkeley_db_svc \
175 /usr/bin/db_* \
176 /usr/include/db{,_185,_cxx}.h \
177 /usr/lib/libdb{{,_cxx}.a,{,_cxx,_java,_tcl}-4.5.{so,a,la}} \
178 /usr/share/doc/db-&db-version;</userinput></screen>
179
180 </sect2>
181
182 <sect2 role="commands">
183 <title>Command Explanations</title>
184
185 <para><command>cd build_unix &amp;&amp;
186 ../dist/configure --prefix=/usr...</command>:
187 This replaces the normal <command>./configure</command> command, as
188 <application>Berkeley DB</application> comes with various
189 build directories for different platforms.</para>
190
191 <para><parameter>--enable-compat185</parameter>: This switch enables
192 building the DB-1.85 compatibility API.</para>
193
194 <para><parameter>--enable-cxx</parameter>: This switch enables building
195 C++ API libraries.</para>
196
197 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
198 Enables <application>Tcl</application> support in DB and creates the
199 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
200
201 <para><parameter>--enable-java</parameter>: Enables
202 <application>Java</application> support in DB and creates the
203 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
204
205 <para><command>make docdir=/usr/share/doc/db-&db-version;
206 install</command>: This installs the documentation in
207 the standard location instead of
208 <filename class='directory'>/usr/docs</filename>.</para>
209
210 <para><command>chown -v -R root:root ...</command>:This command changes
211 the ownership of various installed files from the uid:gid of the
212 builder to root:root.</para>
213
214 </sect2>
215
216 <sect2 role="content">
217 <title>Contents</title>
218
219 <!-- <para>Only the program and libraries not installed in LFS are listed here,
220 the others can be found at <ulink
221 url="&lfs-root;/chapter06/db.html#contents-db"/> as they were initially
222 installed during the building of LFS.</para> -->
223
224 <segmentedlist>
225 <segtitle>Installed Programs</segtitle>
226 <segtitle>Installed Libraries</segtitle>
227 <segtitle>Installed Directory</segtitle>
228
229 <seglistitem>
230 <seg>berkeley_db_svc, db_archive, db_checkpoint, db_deadlock, db_dump,
231 db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify</seg>
232 <seg>libdb.{so,a}, libdb_cxx.{so,a}, libdb_java.{so,a},
233 libdb_tcl.{so,a} and db.jar</seg>
234 <seg>/usr/share/doc/db-&db-version;</seg>
235 </seglistitem>
236 </segmentedlist>
237
238 <variablelist>
239 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
240 <?dbfo list-presentation="list"?>
241 <?dbhtml list-presentation="table"?>
242
243 <varlistentry id="berkeley_db_svc">
244 <term><command>berkeley_db_svc</command></term>
245 <listitem>
246 <para>is the <application>Berkeley DB</application>
247 RPC server.</para>
248 <indexterm zone="db berkeley_db_svc">
249 <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="db_archive">
255 <term><command>db_archive</command></term>
256 <listitem>
257 <para>prints the pathnames of log files that are no longer in
258 use.</para>
259 <indexterm zone="db db_archive">
260 <primary sortas="b-db_archive">db_archive</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="db_checkpoint">
266 <term><command>db_checkpoint</command></term>
267 <listitem>
268 <para>is a daemon process used to monitor and checkpoint database
269 logs.</para>
270 <indexterm zone="db db_checkpoint">
271 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="db_deadlock">
277 <term><command>db_deadlock</command></term>
278 <listitem>
279 <para>is used to abort lock requests when deadlocks are
280 detected.</para>
281 <indexterm zone="db db_deadlock">
282 <primary sortas="b-db_deadlock">db_deadlock</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="db_dump">
288 <term><command>db_dump</command></term>
289 <listitem>
290 <para>converts database files to a flat file format readable by
291 <command>db_load</command>.</para>
292 <indexterm zone="db db_dump">
293 <primary sortas="b-db_dump">db_dump</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="db_load">
299 <term><command>db_load</command></term>
300 <listitem>
301 <para>is used to create database files from flat files created with
302 <command>db_dump</command>.</para>
303 <indexterm zone="db db_load">
304 <primary sortas="b-db_load">db_load</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="db_printlog">
310 <term><command>db_printlog</command></term>
311 <listitem>
312 <para>converts database log files to human readable text.</para>
313 <indexterm zone="db db_printlog">
314 <primary sortas="b-db_printlog">db_printlog</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="db_recover">
320 <term><command>db_recover</command></term>
321 <listitem>
322 <para>is used to restore a database to a consistent state after a
323 failure.</para>
324 <indexterm zone="db db_recover">
325 <primary sortas="b-db_recover">db_recover</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="db_stat">
331 <term><command>db_stat</command></term>
332 <listitem>
333 <para>displays database environment statistics.</para>
334 <indexterm zone="db db_stat">
335 <primary sortas="b-db_stat">db_stat</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="db_upgrade">
341 <term><command>db_upgrade</command></term>
342 <listitem>
343 <para>is used to upgrade database files to a newer version of
344 <application>Berkeley DB</application>.</para>
345 <indexterm zone="db db_upgrade">
346 <primary sortas="b-db_upgrade">db_upgrade</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="db_verify">
352 <term><command>db_verify</command></term>
353 <listitem>
354 <para>is used to run consistency checks on database files.</para>
355 <indexterm zone="db db_verify">
356 <primary sortas="b-db_verify">db_verify</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 </variablelist>
362
363 </sect2>
364
365</sect1>
Note: See TracBrowser for help on using the repository browser.