source: content/databases/db.xml@ a0f03b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 a0f03b0 was a0f03b0, checked in by Archaic <archaic@…>, 20 years ago

Inserting sect1info

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

  • Property mode set to 100644
File size: 6.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY db-download-http "http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz">
8 <!ENTITY db-download-ftp " ">
9 <!ENTITY db-size "4.1 MB">
10 <!ENTITY db-buildsize "68 MB">
11 <!ENTITY db-time "1.22 SBU">
12]>
13
14<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
15<sect1info>
16<othername>$LastChangedBy: $</othername>
17<date>$Date: $</date>
18</sect1info>
19<?dbhtml filename="db.html"?>
20<title>Berkeley DB-&db-version;</title>
21
22<sect2>
23<title>Introduction to <application>Berkeley DB</application></title>
24
25<para>The <application>Berkeley DB</application> package contains programs and
26utilities used by many other applications for database related
27functions.</para>
28
29<sect3><title>Package information</title>
30<itemizedlist spacing='compact'>
31<listitem><para>Download (HTTP): <ulink
32url="&db-download-http;"/></para></listitem>
33<listitem><para>Download (FTP): <ulink
34url="&db-download-ftp;"/></para></listitem>
35<listitem><para>Download size: &db-size;</para></listitem>
36<listitem><para>Estimated Disk space required:
37&db-buildsize;</para></listitem>
38<listitem><para>Estimated build time:
39&db-time;</para></listitem></itemizedlist>
40</sect3>
41
42<sect3><title>Additional downloads</title>
43<itemizedlist spacing='compact'>
44<listitem><para>Required Patch: <ulink
45url="http://www.sleepycat.com/update/4.2.52/patch.4.2.52.1"/></para></listitem>
46<listitem><para>Required Patch: <ulink
47url="http://www.sleepycat.com/update/4.2.52/patch.&db-version;"/></para></listitem>
48</itemizedlist></sect3>
49
50<sect3><title><application>Berkeley DB</application> dependencies</title>
51<sect4><title>Optional</title>
52<para><xref linkend="tcl"/> and <xref linkend="j2sdk"/>
53</para></sect4>
54</sect3>
55
56</sect2>
57
58<sect2>
59<title>Installation of <application>Berkeley DB</application></title>
60
61<para>Install <application>Berkeley DB</application> by running the following
62commands:</para>
63
64<screen><userinput><command>patch -Np0 -i ../patch.4.2.52.1 &amp;&amp;
65patch -Np0 -i ../patch.&db-version; &amp;&amp;
66cd build_unix &amp;&amp;
67../dist/configure --prefix=/usr \
68 --enable-compat185 \
69 --enable-cxx &amp;&amp;
70make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &amp;&amp;
71make docdir=/usr/share/doc/db-&db-version; install</command></userinput></screen>
72
73<para><emphasis>Note:</emphasis> If you build the package with one user, then
74switch to the root user to install the package,
75<application>Berkeley DB</application> will install the files with ownerships
76of the user building the package. This is undesireable. Change the ownership of
77the installed files using the following commands:</para>
78
79<screen><userinput><command>chown root:root /usr/bin/db_* \
80/usr/lib/libdb* /usr/include/db* &amp;&amp;
81find /usr/share/doc/db-4.2.52.2 -exec chown -R root:root {} \;</command></userinput></screen>
82
83<!-- <note><para>If you wish to enable <application>Java</application>
84support in <application>Berkeley DB</application>-&db-version;, add
85<parameter>-enable-java</parameter> to the configure options. This requires a
86Java compiler.
87<application>Java</application> support is needed
88if you plan to use system installed <application>Berkeley DB</application> when
89compiling <xref linkend="openoffice"/>.</para></note> -->
90
91</sect2>
92
93<sect2>
94<title>Command explanations</title>
95
96<para><command>cd build_unix &amp;&amp;
97../dist/configure --prefix=/usr...</command>:
98This replaces the normal <command>./configure</command> command, as
99<application>Berkeley DB</application> comes with various
100build directories for different platforms.</para>
101
102<para><command>make LIBSO_LIBS="-lpthread"
103LIBXSO_LIBS="-lpthread"</command>: configure does not correctly handle
104<acronym>NPTL</acronym>. These variables force it to properly link
105against <acronym>NPTL</acronym>.</para>
106
107<para><command>make docdir=/usr/share/doc/db-&db-version;
108install</command>: This installs the documentation in
109the correct place.</para>
110
111<para><option>--enable-tcl</option> <parameter>--with-tcl=/usr/lib</parameter>:
112enables <application>Tcl</application> support in DB and creates the
113<filename class="libraryfile">libdb_tcl</filename> libraries.</para>
114
115<para><option>--enable-java</option>: enables <application>Java</application>
116support in DB and creates the
117<filename class='libraryfile'>libdb_java</filename> libraries.</para>
118
119</sect2>
120
121<sect2>
122<title>Contents</title>
123
124<para>The <application>Berkeley DB</application> package contains
125<command>db_archive</command>,
126<command>db_checkpoint</command>,
127<command>db_deadlock</command>,
128<command>db_dump</command>,
129<command>db_load</command>,
130<command>db_printlog</command>,
131<command>db_recover</command>,
132<command>db_stat</command>,
133<command>db_upgrade</command>,
134<command>db_verify</command> and the
135<filename class='libraryfile'>libdb</filename> libraries.
136
137</para>
138
139</sect2>
140
141<sect2><title>Description</title>
142
143<sect3><title>db_archive</title>
144<para><command>db_archive</command> prints the pathnames of log files that are
145no longer in use.</para></sect3>
146
147
148<sect3><title>db_checkpoint</title>
149<para><command>db_checkpoint</command> is a daemon process used to monitor and
150checkpoint database logs.</para></sect3>
151
152<sect3><title>db_deadlock</title>
153<para><command>db_deadlock</command> is used to abort lock requests when
154deadlocks are detected.</para></sect3>
155
156<sect3><title>db_dump</title>
157<para><command>db_dump</command> converts database files to a flat file format
158readable by <command>db_load</command>.</para></sect3>
159
160<sect3><title>db_load</title>
161<para><command>db_load</command> is used to create database files from flat
162files created with <command>db_dump</command>.</para></sect3>
163
164<sect3><title>db_printlog</title>
165<para><command>db_printlog</command> converts database log files to human
166readable text.</para></sect3>
167
168<sect3><title>db_recover</title>
169<para><command>db_recover</command> is used to restore a database to a
170consistent state after a failure.</para></sect3>
171
172<sect3><title>db_stat</title>
173<para><command>db_stat</command> displays database environment statistics.
174</para></sect3>
175
176<sect3><title>db_upgrade</title>
177<para><command>db_upgrade</command> is used to upgrade database files to a
178newer version of <application>Berkeley DB</application>.</para></sect3>
179
180<sect3><title>db_verify</title>
181<para><command>db_verify</command> is used to run consistency checks on
182database files.</para></sect3>
183
184</sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.