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

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 d044f84 was d044f84, checked in by Randy McMurchy <randy@…>, 17 years ago

Added parameters to the make command in the DB-3 instructions to properly link the pthread library

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

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