source: content/databases/db-3.3.xml@ c90376c1

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since c90376c1 was c90376c1, checked in by Randy McMurchy <randy@…>, 17 years ago

added patching instructions and command explanations to DB-3

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

  • Property mode set to 100644
File size: 5.3 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-3.3-download-http "http://fresh.t-systems-sfr.com/unix/src/misc/db-&db-3.3-version;.tar.gz">
8 <!ENTITY db-3.3-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-3.3-version;.tar.gz">
9 <!ENTITY db-3.3-size "2.3 MB">
10 <!ENTITY db-3.3-buildsize "27.5 MB">
11 <!ENTITY db-3.3-time "0.80 SBU">
12]>
13
14<sect1 id="db-3.3" xreflabel="Berkeley DB-&db-3.3-version;">
15<?dbhtml filename="db-3.3.html"?>
16<title>Berkeley DB-&db-3.3-version;</title>
17
18<sect2>
19<title>Introduction to <application>Berkeley DB</application>-&db-3.3-version;</title>
20
21<para>The <application>Berkeley DB</application> package contains version
22&db-3.3-version; of the Berkeley Database.</para>
23
24<sect3><title>Package information</title>
25<itemizedlist spacing='compact'>
26<listitem><para>Download (HTTP): <ulink
27url="&db-3.3-download-http;"/></para></listitem>
28<listitem><para>Download (FTP): <ulink
29url="&db-3.3-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &db-3.3-size;</para></listitem>
31<listitem><para>Estimated Disk space required:
32&db-3.3-buildsize;</para></listitem>
33<listitem><para>Estimated build time:
34&db-3.3-time;</para></listitem></itemizedlist>
35</sect3>
36
37<sect3><title>Additional downloads</title>
38<itemizedlist spacing='compact'>
39<listitem><para>Required Patch: <ulink
40url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.1"/></para></listitem>
41<listitem><para>Recommended Patch: <ulink
42url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.2"/></para></listitem>
43</itemizedlist></sect3>
44
45</sect2>
46
47<sect2>
48<title>Installation of <application>Berkeley DB</application></title>
49
50<para>Install <application>Berkeley DB</application> by running the following commands:
51</para>
52
53<screen><userinput><command>patch -Np0 -i ../patch.&db-3.3-version;.1 &amp;&amp;
54patch -Np0 -i ../patch.&db-3.3-version;.2 &amp;&amp;
55cd build_unix &amp;&amp;
56../dist/configure --prefix=/opt/db-3.3 --enable-compat185 &amp;&amp;
57make &amp;&amp;
58make docdir=/opt/db-3.3/doc/Berkeley-DB install &amp;&amp;
59cd /opt/db-3.3/lib/ &amp;&amp;
60mv libdb.so .. &amp;&amp;
61for i in $(ls); do mv $i /usr/lib; ln -sf /usr/lib/$i; done &amp;&amp;
62mv ../libdb.so . &amp;&amp;
63cd /opt/db-3.3/include/ &amp;&amp;
64sed -i 's/^DB185/DB/' db_185.h &amp;&amp;
65ln -nsf /opt/db-3.3/include /usr/include/db3</command></userinput></screen>
66
67</sect2>
68
69<sect2>
70<title>Command explanations</title>
71
72<para><parameter>docdir=/opt/db-3.3/doc/Berkeley-DB</parameter>: Installs the
73documentation in the <filename class="directory">/opt/db-3.3</filename>
74hierarchy.</para>
75
76<para><command>mv libdb.so ..</command> and <command>mv ../libdb.so
77.</command>: Avoids moving <filename>libdb.so</filename> to
78<filename class="directory">/usr/lib</filename>.</para>
79
80<para><command>for i in ...; do ...; ln ...; done</command>: Moves the DB
81libraries to <filename class="directory">/usr/lib</filename> and creates
82symlinks to these libraries in
83<filename class="directory">/opt/db-3.3/lib</filename>.</para>
84
85<para><command>sed -i 's/^DB185/DB/' db_185.h</command>: Change the DB185
86database pointer to DB.</para>
87
88</sect2>
89
90<sect2>
91<title>Contents</title>
92
93<para>The <application>Berkeley DB</application> package contains
94<command>db_archive</command>,
95<command>db_checkpoint</command>,
96<command>db_deadlock</command>,
97<command>db_dump</command>,
98<command>db_load</command>,
99<command>db_printlog</command>,
100<command>db_recover</command>,
101<command>db_stat</command>,
102<command>db_upgrade</command>,
103<command>db_verify</command> and the
104<filename class="library">libdb-3</filename> libraries.
105
106</para>
107
108</sect2>
109
110<sect2><title>Description</title>
111
112<sect3><title>db_archive</title>
113<para><command>db_archive</command> prints the pathnames of log files that are
114no longer in use.</para></sect3>
115
116<sect3><title>db_checkpoint</title>
117<para><command>db_checkpoint</command> is a daemon process used to monitor and
118checkpoint database logs.</para></sect3>
119
120<sect3><title>db_deadlock</title>
121<para><command>db_deadlock</command> is used to abort lock requests when
122deadlocks are detected.</para></sect3>
123
124<sect3><title>db_dump</title>
125<para><command>db_dump</command> converts database files to a flat file format
126readable by <command>db_load</command>.</para></sect3>
127
128<sect3><title>db_load</title>
129<para><command>db_load</command> is used to create database files from flat
130files created with <command>db_dump</command>.</para></sect3>
131
132<sect3><title>db_printlog</title>
133<para><command>db_printlog</command> converts database log files to human
134readable text.</para></sect3>
135
136<sect3><title>db_recover</title>
137<para><command>db_recover</command> is used to restore a database to a
138consistent state after a failure.</para></sect3>
139
140<sect3><title>db_stat</title>
141<para><command>db_stat</command> displays database environment statistics.
142</para></sect3>
143
144<sect3><title>db_upgrade</title>
145<para><command>db_upgrade</command> is used to upgrade database files to a
146newer version of <application>Berkeley DB</application>.</para></sect3>
147
148<sect3><title>db_verify</title>
149<para><command>db_verify</command> is used to run consistency checks on
150database files.</para></sect3>
151
152</sect2>
153
154</sect1>
Note: See TracBrowser for help on using the repository browser.