source: server/databases/db.xml@ b66ece35

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 b66ece35 was b66ece35, checked in by DJ Lucas <dj@…>, 14 years ago

Update all jdk links to include optional IcedTea6 links.

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

  • Property mode set to 100644
File size: 13.1 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="icedtea6"/> or <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>cd build_unix &amp;&amp;
106../dist/configure --prefix=/usr \
107 --enable-test \
108 --enable-tcl \
109 --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>%&nbsp;</prompt>),
117 run:</para>
118
119<screen><userinput>source ../test/test.tcl
120run_parallel 5 run_std
121exit</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>The installation commands below are identical to the commands used
134 in the LFS book. If you installed <application>Berkeley DB</application>
135 in LFS, and you don't add anything to the <command>configure</command>
136 script, you'll end up with exactly what you already have. The additional
137 parameters you can use are listed in the Command Explanations section
138 below.</para> -->
139
140 <note>
141 <para>If you plan on installing <application>Berkeley DB</application>
142 with Java support, you should check the system for certain versions
143 of <xref linkend="jdk"/> and <xref linkend="gmime"/>. Specifically, if
144 <application>JDK</application>-6 Update X and the
145 <command>uudecode</command> program from the
146 <application>GMime</application> program is on the system, the build will
147 fail (unless you run the modified <command>./configure</command> command
148 shown below). You can run two commands (<command>javac -version</command>
149 and <command>uudecode --version</command>) to determine what versions are
150 installed. You can also download and run a shell script from
151 <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert
152 you to a non-working condition. If the identified programs exist on the
153 system, you must modify the
154 <command>./configure</command> command as shown below.</para>
155
156<screen><userinput>uudecode="no" ../dist/configure --(use the parameters shown below)</userinput></screen>
157 </note>
158
159 <para>Install <application>Berkeley DB</application> by running the
160 following commands:</para>
161
162<screen><userinput>cd build_unix &amp;&amp;
163../dist/configure --prefix=/usr \
164 --enable-compat185 \
165 --enable-cxx &amp;&amp;
166make</userinput></screen>
167
168 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
169
170<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
171chown -v -R root:root \
172 /usr/bin/berkeley_db_svc \
173 /usr/bin/db_* \
174 /usr/include/db{,_185,_cxx}.h \
175 /usr/lib/libdb{{,_cxx}.a,{,_cxx,_java,_tcl}-4.8.{so,a,la}} \
176 /usr/share/doc/db-&db-version;</userinput></screen>
177
178 </sect2>
179
180 <sect2 role="commands">
181 <title>Command Explanations</title>
182
183 <para><command>cd build_unix &amp;&amp;
184 ../dist/configure --prefix=/usr...</command>:
185 This replaces the normal <command>./configure</command> command, as
186 <application>Berkeley DB</application> comes with various
187 build directories for different platforms.</para>
188
189 <para><parameter>--enable-compat185</parameter>: This switch enables
190 building the DB-1.85 compatibility API.</para>
191
192 <para><parameter>--enable-cxx</parameter>: This switch enables building
193 C++ API libraries.</para>
194
195 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
196 Enables <application>Tcl</application> support in DB and creates the
197 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
198
199 <para><parameter>--enable-java</parameter>: Enables
200 <application>Java</application> support in DB and creates the
201 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
202
203 <para><command>make docdir=/usr/share/doc/db-&db-version;
204 install</command>: This installs the documentation in
205 the standard location instead of
206 <filename class='directory'>/usr/docs</filename>.</para>
207
208 <para><command>chown -v -R root:root ...</command>:This command changes
209 the ownership of various installed files from the uid:gid of the
210 builder to root:root.</para>
211
212 </sect2>
213
214 <sect2 role="content">
215 <title>Contents</title>
216
217 <!-- <para>Only the program and libraries not installed in LFS are listed here,
218 the others can be found at <ulink
219 url="&lfs-root;/chapter06/db.html#contents-db"/> as they were initially
220 installed during the building of LFS.</para> -->
221
222 <segmentedlist>
223 <segtitle>Installed Programs</segtitle>
224 <segtitle>Installed Libraries</segtitle>
225 <segtitle>Installed Directory</segtitle>
226
227 <seglistitem>
228 <seg>db_archive, db_checkpoint, db_deadlock, db_dump,
229 db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify</seg>
230 <seg>libdb.{so,a}, libdb_cxx.{so,a}, libdb_java.{so,a},
231 libdb_tcl.{so,a} and db.jar</seg>
232 <seg>/usr/share/doc/db-&db-version;</seg>
233 </seglistitem>
234 </segmentedlist>
235
236 <variablelist>
237 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
238 <?dbfo list-presentation="list"?>
239 <?dbhtml list-presentation="table"?>
240
241 <varlistentry id="db_archive">
242 <term><command>db_archive</command></term>
243 <listitem>
244 <para>prints the pathnames of log files that are no longer in
245 use.</para>
246 <indexterm zone="db db_archive">
247 <primary sortas="b-db_archive">db_archive</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="db_checkpoint">
253 <term><command>db_checkpoint</command></term>
254 <listitem>
255 <para>is a daemon process used to monitor and checkpoint database
256 logs.</para>
257 <indexterm zone="db db_checkpoint">
258 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="db_deadlock">
264 <term><command>db_deadlock</command></term>
265 <listitem>
266 <para>is used to abort lock requests when deadlocks are
267 detected.</para>
268 <indexterm zone="db db_deadlock">
269 <primary sortas="b-db_deadlock">db_deadlock</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="db_dump">
275 <term><command>db_dump</command></term>
276 <listitem>
277 <para>converts database files to a flat file format readable by
278 <command>db_load</command>.</para>
279 <indexterm zone="db db_dump">
280 <primary sortas="b-db_dump">db_dump</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="db_load">
286 <term><command>db_load</command></term>
287 <listitem>
288 <para>is used to create database files from flat files created with
289 <command>db_dump</command>.</para>
290 <indexterm zone="db db_load">
291 <primary sortas="b-db_load">db_load</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="db_printlog">
297 <term><command>db_printlog</command></term>
298 <listitem>
299 <para>converts database log files to human readable text.</para>
300 <indexterm zone="db db_printlog">
301 <primary sortas="b-db_printlog">db_printlog</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="db_recover">
307 <term><command>db_recover</command></term>
308 <listitem>
309 <para>is used to restore a database to a consistent state after a
310 failure.</para>
311 <indexterm zone="db db_recover">
312 <primary sortas="b-db_recover">db_recover</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="db_stat">
318 <term><command>db_stat</command></term>
319 <listitem>
320 <para>displays database environment statistics.</para>
321 <indexterm zone="db db_stat">
322 <primary sortas="b-db_stat">db_stat</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="db_upgrade">
328 <term><command>db_upgrade</command></term>
329 <listitem>
330 <para>is used to upgrade database files to a newer version of
331 <application>Berkeley DB</application>.</para>
332 <indexterm zone="db db_upgrade">
333 <primary sortas="b-db_upgrade">db_upgrade</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="db_verify">
339 <term><command>db_verify</command></term>
340 <listitem>
341 <para>is used to run consistency checks on database files.</para>
342 <indexterm zone="db db_verify">
343 <primary sortas="b-db_verify">db_verify</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 </variablelist>
349
350 </sect2>
351
352</sect1>
Note: See TracBrowser for help on using the repository browser.