source: server/databases/db.xml@ 9ac4aff

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 9ac4aff was 9ac4aff, checked in by David Jensen <djensen@…>, 19 years ago

missing comma, Berkley DB

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

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