source: server/databases/db.xml@ 4e6dc5d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4e6dc5d was ca8bcae9, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

OpenJDK-1.8.0.45 typo: s/test/&s/.
Berkeley DB-6.1.23: java bindings broken.
Emacs-24.5: bootstrap needed only for development versions.
Some gcc5 tags.

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

  • Property mode set to 100644
File size: 14.5 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
8 "http://download.oracle.com/berkeley-db/db-&db-version;.tar.gz">
9 <!ENTITY db-download-ftp " ">
10 <!ENTITY db-md5sum "f18e4a2cec9465b352ce59068381a411">
11 <!ENTITY db-size "36 MB">
12 <!ENTITY db-buildsize "278 MB">
13 <!ENTITY db-time "0.7 SBU">
14]>
15
16<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
17 <?dbhtml filename="db.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Berkeley DB-&db-version;</title>
25
26 <indexterm zone="db">
27 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Berkeley DB</title>
32
33 <para>
34 The <application>Berkeley DB</application> package contains programs and
35 utilities used by many other applications for database related functions.
36 </para>
37
38 &lfs77_checked; &gcc5_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&db-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&db-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &db-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &db-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &db-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &db-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="tcl"/>,
79 <xref linkend="openjdk"/> (the Java bindings are currently broken with
80 JDK8)<!-- or <xref linkend="jdk"/> -->, and
81 <xref linkend="sharutils"/> (for the <command>uudecode</command> command
82 - Java bindings are required)
83 </para>
84
85 <para condition="html" role="usernotes">
86 User Notes: <ulink url="&blfs-wiki;/db"/>
87 </para>
88 </sect2>
89
90 <!-- <sect2 role="testing">
91 <title>Testing Berkeley DB</title>
92
93 <para>
94 If you can't wait 12 hours or so you may want to skip ahead to
95 <xref linkend="bdb-installation"/>. The test suite can take a long time
96 and has a few bugs causing a report of <quote>Regression tests
97 failed</quote>. However, running the test suite is a very exhaustive test
98 of your hardware, perhaps pushing your machine harder (especially disk
99 I/O) than it will ever see during production use. Note that you must have
100 <application>Tcl</application> installed to run the test suite.
101 </para>
102
103 <para>
104 Build for the <application>Berkeley DB</application> test by running the
105 following commands:
106 </para>
107
108<screen><userinput>cd build_unix &amp;&amp;
109../dist/configure -&#45;prefix=/usr \
110 -&#45;enable-test \
111 -&#45;enable-tcl \
112 -&#45;enable-dbm \
113 -&#45;with-tcl=/usr/lib &amp;&amp;
114make</userinput></screen>
115
116 <para>
117 To test the results, start <command>tclsh</command>:
118 </para>
119
120<screen><userinput>tclsh</userinput></screen>
121
122 <para>
123 From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>), run:
124 </para>
125
126<screen><userinput>source ../test/tcl/test.tcl
127run_parallel 5 run_std
128exit</userinput></screen>
129
130 <para>
131 Clean up the source tree with the following command:
132 </para>
133
134<screen><userinput>make realclean &amp;&amp;
135cd ..</userinput></screen>
136
137 <note><para>
138 Test127.f and Repmgr026.c are known to fail.
139 </para></note>
140
141 <para>
142 There are additional testing suites in the
143 <filename class="directory">test/c</filename> and
144 <filename class="directory">test/cxx</filename> directories. See the
145 <filename>README</filename> in each directory for instructions on how to
146 run the tests.
147 </para>
148 </sect2> -->
149
150 <sect2 role="installation" id="bdb-installation">
151 <title>Installation of Berkeley DB</title>
152
153 <!-- <note>
154 <para>
155 If you plan on installing <application>Berkeley DB</application> with
156 Java support, you should check the system for certain versions of
157 <xref linkend="jdk"/> and <xref linkend="gmime"/>. Specifically,
158 if <application>JDK</application>-6 Update X and the
159 <command>uudecode</command> program from the
160 <application>GMime</application> program is on the system, the build
161 will fail (unless you run the modified <command>./configure</command>
162 command shown below). You can run two commands
163 (<command>javac -version</command> and
164 <command>uudecode -&#45;version</command>) to determine what versions are
165 installed. You can also download and run a shell script from
166 <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert you
167 to a non-working condition. If the identified programs exist on the
168 system, you must modify the <command>./configure</command> command as
169 shown below.
170 </para>
171
172<screen><userinput>uudecode="no" ../dist/configure -&#45;(use the parameters shown below)</userinput></screen>
173 </note> -->
174
175 <para>
176 Install <application>Berkeley DB</application> by running the following
177 commands:
178 </para>
179
180<screen><userinput>cd build_unix &amp;&amp;
181../dist/configure --prefix=/usr \
182 --enable-compat185 \
183 --enable-dbm \
184 --disable-static \
185 --enable-cxx &amp;&amp;
186make</userinput></screen>
187
188 <para>
189 Now, as the <systemitem class="username">root</systemitem> user:
190 </para>
191
192<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
193
194chown -v -R root:root \
195 /usr/bin/db_* \
196 /usr/include/db{,_185,_cxx}.h \
197 /usr/lib/libdb*.{so,la} \
198 /usr/share/doc/db-&db-version;</userinput></screen>
199 </sect2>
200
201 <sect2 role="commands">
202 <title>Command Explanations</title>
203
204 <para>
205 <command>cd build_unix &amp;&amp; ../dist/configure
206 --prefix=/usr...</command>: This replaces the normal
207 <command>./configure</command> command, as
208 <application>Berkeley DB</application> comes with various build
209 directories for different platforms.
210 </para>
211
212 <para>
213 <option>--enable-compat185</option>: This switch enables building
214 the DB-1.85 compatibility API.
215 </para>
216
217 <para>
218 <option>--enable-cxx</option>: This switch enables building C++ API
219 libraries.
220 </para>
221
222 <para>
223 <option>--enable-dbm</option>: Enables legacy interface support
224 needed by some older packages.
225 </para>
226
227 <para>
228 <command>make docdir=/usr/share/doc/db-&db-version; install</command>:
229 This installs the documentation in the standard location instead of
230 <filename class="directory">/usr/docs</filename>.
231 </para>
232
233 <para>
234 <command>chown -v -R root:root ...</command>:This command changes the
235 ownership of various installed files from the uid:gid of the builder to
236 root:root.
237 </para>
238
239 <para>
240 <option>--enable-tcl --with-tcl=/usr/lib</option>: Enables
241 <application>Tcl</application> support in DB and creates the
242 <filename class="libraryfile">libdb_tcl</filename> libraries.
243 </para>
244
245 <para>
246 <option>--enable-java</option>: Enables <application>Java</application>
247 support in DB and creates the
248 <filename class="libraryfile">libdb_java</filename> libraries.
249 The Java bindings are currently broken with JDK8.
250 </para>
251 </sect2>
252
253 <sect2 role="content">
254 <title>Contents</title>
255
256 <segmentedlist>
257 <segtitle>Installed Programs</segtitle>
258 <segtitle>Installed Libraries</segtitle>
259 <segtitle>Installed Directory</segtitle>
260
261 <seglistitem>
262 <seg>
263 db_archive,
264 db_checkpoint,
265 db_deadlock,
266 db_dump,
267 db_hotbackup,
268 db_load,
269 db_log_verify,
270 db_printlog,
271 db_recover,
272 db_replicate,
273 db_stat,
274 db_tuner,
275 db_upgrade, and
276 db_verify.
277 </seg>
278 <seg>
279 libdb.so,
280 libdb_cxx.so,
281 libdb_java.so, and
282 libdb_tcl.so
283 </seg>
284 <seg>/usr/share/doc/db-&db-version;</seg>
285 </seglistitem>
286 </segmentedlist>
287
288 <variablelist>
289 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
290 <?dbfo list-presentation="list"?>
291 <?dbhtml list-presentation="table"?>
292
293 <varlistentry id="db_archive">
294 <term><command>db_archive</command></term>
295 <listitem>
296 <para>
297 prints the pathnames of log files that are no longer in use.
298 </para>
299 <indexterm zone="db db_archive">
300 <primary sortas="b-db_archive">db_archive</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="db_checkpoint">
306 <term><command>db_checkpoint</command></term>
307 <listitem>
308 <para>
309 is a daemon process used to monitor and checkpoint database logs.
310 </para>
311 <indexterm zone="db db_checkpoint">
312 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="db_deadlock">
318 <term><command>db_deadlock</command></term>
319 <listitem>
320 <para>
321 is used to abort lock requests when deadlocks are detected.
322 </para>
323 <indexterm zone="db db_deadlock">
324 <primary sortas="b-db_deadlock">db_deadlock</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="db_dump">
330 <term><command>db_dump</command></term>
331 <listitem>
332 <para>
333 converts database files to a flat file format readable by
334 <command>db_load</command>.
335 </para>
336 <indexterm zone="db db_dump">
337 <primary sortas="b-db_dump">db_dump</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="db_hotbackup">
343 <term><command>db_hotbackup</command></term>
344 <listitem>
345 <para>
346 creates "hot backup" or "hot failover" snapshots of Berkeley DB
347 databases.
348 </para>
349 <indexterm zone="db db_hotbackup">
350 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="db_load">
356 <term><command>db_load</command></term>
357 <listitem>
358 <para>
359 is used to create database files from flat files created with
360 <command>db_dump</command>.
361 </para>
362 <indexterm zone="db db_load">
363 <primary sortas="b-db_load">db_load</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="db_log_verify">
369 <term><command>db_log_verify</command></term>
370 <listitem>
371 <para>verifies the log files of a database.</para>
372 <indexterm zone="db db_log_verify">
373 <primary sortas="b-db_log_verify">db_log_verify</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="db_printlog">
379 <term><command>db_printlog</command></term>
380 <listitem>
381 <para>converts database log files to human readable text.</para>
382 <indexterm zone="db db_printlog">
383 <primary sortas="b-db_printlog">db_printlog</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="db_recover">
389 <term><command>db_recover</command></term>
390 <listitem>
391 <para>
392 is used to restore a database to a consistent state after a failure.
393 </para>
394 <indexterm zone="db db_recover">
395 <primary sortas="b-db_recover">db_recover</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="db_replicate">
401 <term><command>db_replicate</command></term>
402 <listitem>
403 <para>
404 is a daemon process that provides replication/HA services on a
405 transactional environment.
406 </para>
407 <indexterm zone="db db_replicate">
408 <primary sortas="b-db_replicate">db_replicate</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
413 <varlistentry id="db_stat">
414 <term><command>db_stat</command></term>
415 <listitem>
416 <para>displays database environment statistics.</para>
417 <indexterm zone="db db_stat">
418 <primary sortas="b-db_stat">db_stat</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="db_tuner">
424 <term><command>db_tuner</command></term>
425 <listitem>
426 <para>
427 analyzes the data in a btree database, and suggests a page size that
428 is likely to deliver optimal operation.
429 </para>
430 <indexterm zone="db db_tuner">
431 <primary sortas="b-db_tuner">db_tuner</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="db_upgrade">
437 <term><command>db_upgrade</command></term>
438 <listitem>
439 <para>
440 is used to upgrade database files to a newer version of
441 <application>Berkeley DB</application>.
442 </para>
443 <indexterm zone="db db_upgrade">
444 <primary sortas="b-db_upgrade">db_upgrade</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="db_verify">
450 <term><command>db_verify</command></term>
451 <listitem>
452 <para>is used to run consistency checks on database files.</para>
453 <indexterm zone="db db_verify">
454 <primary sortas="b-db_verify">db_verify</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458 </variablelist>
459 </sect2>
460</sect1>
Note: See TracBrowser for help on using the repository browser.