source: server/databases/db.xml@ 8d288fe8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 8d288fe8 was 8d288fe8, checked in by David Jensen <djensen@…>, 19 years ago

recommended skip test-suite, + minor nits

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

  • Property mode set to 100644
File size: 10.6 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 " ">
8 <!ENTITY db-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-version;.tar.gz">
9 <!ENTITY db-md5sum "e27759537db6054b31d8cb3e99ba6fbb">
10 <!ENTITY db-size "5.8 MB">
11 <!ENTITY db-buildsize "74 MB (additional 140 MB to run parallel standard testsuite)">
12 <!ENTITY db-time "1.0 SBU (additional 80 SBU to run parallel standard testsuite)">
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 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&db-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&db-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &db-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &db-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &db-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &db-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
59
60 <bridgehead renderas="sect4">Optional</bridgehead>
61 <para><xref linkend="tcl"/> and <xref linkend="jdk"/></para>
62
63 </sect2>
64
65 <sect2 role="testing">
66 <title>Testing Berkeley DB</title>
67
68 <para>It is recommended you skip ahead to Installation. The test-suite
69 takes more than 80 SBU and has a few bugs causing reports of 'Regression
70 Tests Failed'. You must have <application>Tcl</application> to test
71 <application>Berkeley DB</application>.</para>
72
73 <para>Build for the <application>Berkeley DB</application> test by running
74 the following commands:</para>
75
76<screen><userinput>cd build_unix &amp;&amp;
77../dist/configure --prefix=/usr \
78 --enable-test --enable-tcl --with-tcl=/usr/lib &amp;&amp;
79make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &amp;&amp;
80chmod 644 ../test/sijointest.tcl &amp;&amp;
81sed -i 's:puts "[s,S].*::' \
82 ../test/sijointest.tcl</userinput></screen>
83
84 <para>To test the results, start <command>tclsh</command>:</para>
85
86<screen><userinput>tclsh</userinput></screen>
87
88 <para>From the tclsh prompt (%), run:</para>
89
90<screen><userinput>source ../test/test.tcl
91run_parallel 4 run_std
92exit</userinput></screen>
93
94 <para>Clean up with the following command:</para>
95
96<screen><userinput>make realclean &amp;&amp;
97cd ..</userinput></screen>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of Berkeley DB</title>
103
104 <para>Install <application>Berkeley DB</application> by running the
105 following commands:</para>
106
107<screen><userinput>cd build_unix &amp;&amp;
108../dist/configure --prefix=/usr \
109 --enable-compat185 \
110 --enable-cxx &amp;&amp;
111make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen>
112
113 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
116chown root:root /usr/bin/db_* \
117/usr/lib/libdb* /usr/include/db* &amp;&amp;
118chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
119
120 </sect2>
121
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para><command>cd build_unix &amp;&amp;
126 ../dist/configure --prefix=/usr...</command>:
127 This replaces the normal <command>./configure</command> command, as
128 <application>Berkeley DB</application> comes with various
129 build directories for different platforms.</para>
130
131 <para><parameter>--enable-compat185</parameter>: This switch enables
132 building DB 1.85 compatibility API.</para>
133
134 <para><parameter>--enable-cxx</parameter>: This switch enables building
135 C++ API libraries.</para>
136
137 <para><parameter>--enable-test</parameter>: Enables building the test suite
138 (requires the two Tcl switches below).</para>
139
140 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
141 Enables <application>Tcl</application> support in DB and creates the
142 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
143
144 <para><parameter>--enable-java</parameter>: Enables
145 <application>Java</application> support in DB and creates the
146 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
147
148 <para><parameter>--enable-rpc</parameter>: Enables building the
149 <application>Berkeley DB</application> RPC server.</para>
150
151 <para><command>make LIBSO_LIBS="-lpthread"
152 LIBXSO_LIBS="-lpthread"</command>: <command>configure</command>
153 does not correctly handle NPTL. These variables force it to
154 properly link against NPTL.</para>
155
156 <para><command>make docdir=/usr/share/doc/db-&db-version;
157 install</command>: This installs the documentation in
158 the correct place.</para>
159
160 <para><command>sed -i 's:puts "[s,S].*::' ../test/sijointest.tcl</command>:
161 This prevents logging two notes that are not recognized by
162 <command>run_std</command>.</para>
163
164 </sect2>
165
166 <sect2 role="content">
167 <title>Contents</title>
168
169 <segmentedlist>
170 <segtitle>Installed Programs</segtitle>
171 <segtitle>Installed Libraries</segtitle>
172 <segtitle>Installed Directory</segtitle>
173
174 <seglistitem>
175 <seg>db_archive, db_checkpoint, db_deadlock, db_dump, db_load,
176 db_printlog, db_recover, db_stat, db_upgrade, db_verify and
177 berkeley_db_svc if enabled</seg>
178 <seg>libdb.[so,a], libdb_cxx.[so,a], libdb_java.[so,a] and
179 libdb_tcl.[so,a]</seg>
180 <seg>/usr/share/doc/db-&db-version;</seg>
181 </seglistitem>
182 </segmentedlist>
183
184 <variablelist>
185 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
186 <?dbfo list-presentation="list"?>
187 <?dbhtml list-presentation="table"?>
188
189 <varlistentry id="berkeley_db_svc">
190 <term><command>berkeley_db_svc</command></term>
191 <listitem>
192 <para>is the <application>Berkeley DB</application>
193 RPC server.</para>
194 <indexterm zone="db berkeley_db_svc">
195 <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="db_archive">
201 <term><command>db_archive</command></term>
202 <listitem>
203 <para>prints the pathnames of log files that are no longer in
204 use.</para>
205 <indexterm zone="db db_archive">
206 <primary sortas="b-db_archive">db_archive</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="db_checkpoint">
212 <term><command>db_checkpoint</command></term>
213 <listitem>
214 <para>is a daemon process used to monitor and checkpoint database
215 logs.</para>
216 <indexterm zone="db db_checkpoint">
217 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="db_deadlock">
223 <term><command>db_deadlock</command></term>
224 <listitem>
225 <para>is used to abort lock requests when deadlocks are
226 detected.</para>
227 <indexterm zone="db db_deadlock">
228 <primary sortas="b-db_deadlock">db_deadlock</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="db_dump">
234 <term><command>db_dump</command></term>
235 <listitem>
236 <para>converts database files to a flat file format readable by
237 <command>db_load</command>.</para>
238 <indexterm zone="db db_dump">
239 <primary sortas="b-db_dump">db_dump</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="db_load">
245 <term><command>db_load</command></term>
246 <listitem>
247 <para>is used to create database files from flat files created with
248 <command>db_dump</command>.</para>
249 <indexterm zone="db db_load">
250 <primary sortas="b-db_load">db_load</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="db_printlog">
256 <term><command>db_printlog</command></term>
257 <listitem>
258 <para>converts database log files to human readable text.</para>
259 <indexterm zone="db db_printlog">
260 <primary sortas="b-db_printlog">db_printlog</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="db_recover">
266 <term><command>db_recover</command></term>
267 <listitem>
268 <para>is used to restore a database to a consistent state after a
269 failure.</para>
270 <indexterm zone="db db_recover">
271 <primary sortas="b-db_recover">db_recover</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="db_stat">
277 <term><command>db_stat</command></term>
278 <listitem>
279 <para>displays database environment statistics.</para>
280 <indexterm zone="db db_stat">
281 <primary sortas="b-db_stat">db_stat</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="db_upgrade">
287 <term><command>db_upgrade</command></term>
288 <listitem>
289 <para>is used to upgrade database files to a newer version of
290 <application>Berkeley DB</application>.</para>
291 <indexterm zone="db db_upgrade">
292 <primary sortas="b-db_upgrade">db_upgrade</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="db_verify">
298 <term><command>db_verify</command></term>
299 <listitem>
300 <para>is used to run consistency checks on database files.</para>
301 <indexterm zone="db db_verify">
302 <primary sortas="b-db_verify">db_verify</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 </variablelist>
308
309 </sect2>
310
311</sect1>
Note: See TracBrowser for help on using the repository browser.