source: server/databases/db.xml@ 88cec02

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 88cec02 was d8069d7, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Update to Berkeley DB-5.2.36.
Add sharutils-4.11.
Update to tcl-8.5.10.
Update to libpng-1.5.5.
Update to jpeg-8c.
Update to libffi-3.0.10.

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

  • Property mode set to 100644
File size: 11.7 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 "88466dd6c13d5d8cddb406be8a1d4d92">
10 <!ENTITY db-size "33 MB">
11 <!ENTITY db-buildsize "181 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.</para>
35
36 &lfs70_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&db-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&db-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &db-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &db-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &db-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &db-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Optional</bridgehead>
63 <para role="optional">
64 <xref linkend="tcl"/>,
65 <xref linkend="icedtea6"/> or <xref linkend="jdk"/>, and
66 <xref linkend='sharutils'/> (for the <command>uudecode</command> command)
67 </para>
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/db"/></para>
71
72 </sect2>
73
74 <sect2 role="testing">
75 <title>Testing Berkeley DB</title>
76
77 <para>You may want to skip ahead to <xref linkend="bdb-installation"/>. The
78 test suite can take up to 150 SBUs and has a few bugs causing a report of
79 <quote>Regression tests failed</quote>. However, running the test suite is
80 a very exhaustive test of your hardware, perhaps pushing your machine
81 harder (especially disk I/O) than it will ever see during production use.
82 Note that you must have <application>Tcl</application> installed to run the
83 test suite.</para>
84
85 <para>Build for the <application>Berkeley DB</application> test by running
86 the following commands:</para>
87
88<screen><userinput>cd build_unix &amp;&amp;
89../dist/configure --prefix=/usr \
90 --enable-test \
91 --enable-tcl \
92 --with-tcl=/usr/lib &amp;&amp;
93make</userinput></screen>
94
95 <para>To test the results, start <command>tclsh</command>:</para>
96
97<screen><userinput>tclsh</userinput></screen>
98
99 <para>From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>),
100 run:</para>
101
102<screen><userinput>source ../test/tcl/test.tcl
103run_parallel 5 run_std
104exit</userinput></screen>
105
106 <para>Clean up the source tree with the following command:</para>
107
108<screen><userinput>make realclean &amp;&amp;
109cd ..</userinput></screen>
110
111 <note><para>Test127.f and Repmgr026.c are known to fail.</para></note>
112
113 <para>There are additional testing suites in the <filename
114 class='directory'>test/c</filename> and <filename
115 class='directory'>test/cxx</filename> directories. See the
116 <filename>README</filename> in each directory for instructions on how to
117 run the tests.</para>
118
119 </sect2>
120
121 <sect2 role="installation" id="bdb-installation">
122 <title>Installation of Berkeley DB</title>
123
124 <note>
125 <para>If you plan on installing <application>Berkeley DB</application>
126 with Java support, you should check the system for certain versions
127 of <xref linkend="jdk"/> and <xref linkend="gmime"/>. Specifically, if
128 <application>JDK</application>-6 Update X and the
129 <command>uudecode</command> program from the
130 <application>GMime</application> program is on the system, the build will
131 fail (unless you run the modified <command>./configure</command> command
132 shown below). You can run two commands (<command>javac -version</command>
133 and <command>uudecode --version</command>) to determine what versions are
134 installed. You can also download and run a shell script from
135 <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert
136 you to a non-working condition. If the identified programs exist on the
137 system, you must modify the
138 <command>./configure</command> command as shown below.</para>
139
140<screen><userinput>uudecode="no" ../dist/configure --(use the parameters shown below)</userinput></screen>
141 </note>
142
143 <para>Install <application>Berkeley DB</application> by running the
144 following commands:</para>
145
146<screen><userinput>cd build_unix &amp;&amp;
147../dist/configure --prefix=/usr \
148 --enable-compat185 \
149 --enable-cxx &amp;&amp;
150make</userinput></screen>
151
152 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
153
154<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
155chown -v -R root:root \
156 /usr/bin/db_* \
157 /usr/include/db{,_185,_cxx}.h \
158 /usr/lib/libdb*.{so,a,la} \
159 /usr/share/doc/db-&db-version;</userinput></screen>
160
161 </sect2>
162
163 <sect2 role="commands">
164 <title>Command Explanations</title>
165
166 <para><command>cd build_unix &amp;&amp;
167 ../dist/configure --prefix=/usr...</command>:
168 This replaces the normal <command>./configure</command> command, as
169 <application>Berkeley DB</application> comes with various
170 build directories for different platforms.</para>
171
172 <para><parameter>--enable-compat185</parameter>: This switch enables
173 building the DB-1.85 compatibility API.</para>
174
175 <para><parameter>--enable-cxx</parameter>: This switch enables building
176 C++ API libraries.</para>
177
178 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
179 Enables <application>Tcl</application> support in DB and creates the
180 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
181
182 <para><parameter>--enable-java</parameter>: Enables
183 <application>Java</application> support in DB and creates the
184 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
185
186 <para><command>make docdir=/usr/share/doc/db-&db-version;
187 install</command>: This installs the documentation in
188 the standard location instead of
189 <filename class='directory'>/usr/docs</filename>.</para>
190
191 <para><command>chown -v -R root:root ...</command>:This command changes
192 the ownership of various installed files from the uid:gid of the
193 builder to root:root.</para>
194
195 </sect2>
196
197 <sect2 role="content">
198 <title>Contents</title>
199
200 <segmentedlist>
201 <segtitle>Installed Programs</segtitle>
202 <segtitle>Installed Libraries</segtitle>
203 <segtitle>Installed Directory</segtitle>
204
205 <seglistitem>
206 <seg>db_archive, db_checkpoint, db_deadlock, db_dump,
207 db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify</seg>
208 <seg>libdb.{so,a}, libdb_cxx.{so,a}, libdb_java.{so,a},
209 libdb_tcl.{so,a} and db.jar</seg>
210 <seg>/usr/share/doc/db-&db-version;</seg>
211 </seglistitem>
212 </segmentedlist>
213
214 <variablelist>
215 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
216 <?dbfo list-presentation="list"?>
217 <?dbhtml list-presentation="table"?>
218
219 <varlistentry id="db_archive">
220 <term><command>db_archive</command></term>
221 <listitem>
222 <para>prints the pathnames of log files that are no longer in
223 use.</para>
224 <indexterm zone="db db_archive">
225 <primary sortas="b-db_archive">db_archive</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="db_checkpoint">
231 <term><command>db_checkpoint</command></term>
232 <listitem>
233 <para>is a daemon process used to monitor and checkpoint database
234 logs.</para>
235 <indexterm zone="db db_checkpoint">
236 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="db_deadlock">
242 <term><command>db_deadlock</command></term>
243 <listitem>
244 <para>is used to abort lock requests when deadlocks are
245 detected.</para>
246 <indexterm zone="db db_deadlock">
247 <primary sortas="b-db_deadlock">db_deadlock</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="db_dump">
253 <term><command>db_dump</command></term>
254 <listitem>
255 <para>converts database files to a flat file format readable by
256 <command>db_load</command>.</para>
257 <indexterm zone="db db_dump">
258 <primary sortas="b-db_dump">db_dump</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="db_load">
264 <term><command>db_load</command></term>
265 <listitem>
266 <para>is used to create database files from flat files created with
267 <command>db_dump</command>.</para>
268 <indexterm zone="db db_load">
269 <primary sortas="b-db_load">db_load</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="db_printlog">
275 <term><command>db_printlog</command></term>
276 <listitem>
277 <para>converts database log files to human readable text.</para>
278 <indexterm zone="db db_printlog">
279 <primary sortas="b-db_printlog">db_printlog</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="db_recover">
285 <term><command>db_recover</command></term>
286 <listitem>
287 <para>is used to restore a database to a consistent state after a
288 failure.</para>
289 <indexterm zone="db db_recover">
290 <primary sortas="b-db_recover">db_recover</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="db_stat">
296 <term><command>db_stat</command></term>
297 <listitem>
298 <para>displays database environment statistics.</para>
299 <indexterm zone="db db_stat">
300 <primary sortas="b-db_stat">db_stat</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="db_upgrade">
306 <term><command>db_upgrade</command></term>
307 <listitem>
308 <para>is used to upgrade database files to a newer version of
309 <application>Berkeley DB</application>.</para>
310 <indexterm zone="db db_upgrade">
311 <primary sortas="b-db_upgrade">db_upgrade</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="db_verify">
317 <term><command>db_verify</command></term>
318 <listitem>
319 <para>is used to run consistency checks on database files.</para>
320 <indexterm zone="db db_verify">
321 <primary sortas="b-db_verify">db_verify</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 </variablelist>
327
328 </sect2>
329
330</sect1>
Note: See TracBrowser for help on using the repository browser.