source: chapter06/db.xml@ fa21b3d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since fa21b3d was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7245 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-db" role="wrap">
7<title>DB-&db-version;</title>
8<?dbhtml filename="db.html"?>
9
10<indexterm zone="ch-system-db"><primary sortas="a-DB">Berkeley DB</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The DB package contains programs and utilities used by many other
14applications for database related functions.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>1.0 SBU</seg><seg>74 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils,
25Diffutils, GCC, Glibc, Make and Sed.</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of DB</title>
31
32<para>Prepare DB for compilation:</para>
33
34<screen><userinput>cd build_unix &amp;&amp;
35../dist/configure --prefix=/usr --enable-compat185 --enable-cxx</userinput></screen>
36
37<para>The meaning of the configure options:</para>
38
39<variablelist>
40<varlistentry>
41<term><parameter>--enable-compat185</parameter></term>
42<listitem><para>This option enables building DB 1.85 compatibility API.</para></listitem>
43</varlistentry>
44
45<varlistentry>
46<term><parameter>--enable-cxx</parameter></term>
47<listitem><para>This option enables building C++ API libraries.</para></listitem>
48</varlistentry>
49</variablelist>
50
51<para>Compile the package:</para>
52
53<screen><userinput>make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen>
54
55<para>The meaning of the make option:</para>
56
57<variablelist>
58<varlistentry>
59<term><parameter>LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</parameter></term>
60<listitem><para>These variables work around a bug in the <command>configure</command>
61script that causes the DB libraries not to link against NPTL libraries</para></listitem>
62</varlistentry>
63</variablelist>
64
65<para>It is not possible to test the package meaningfully, because that
66would involve building TCL bindings. TCL bindings cannot be built properly
67now because TCL is linked against Glibc in <filename class="directory">/tools</filename>,
68not against Glibc in <filename class="directory">/usr</filename>.</para>
69
70<para>Install the package:</para>
71
72<screen><userinput>make docdir=/usr/share/doc/db-&db-version; install</userinput></screen>
73
74<para>The meaning of the make option:</para>
75
76<variablelist>
77<varlistentry>
78<term><parameter>docdir=...</parameter></term>
79<listitem><para>This variable specifies the correct place for the documentation.</para></listitem>
80</varlistentry>
81</variablelist>
82
83<para>Fix the permissions on the installed documentation files:</para>
84
85<screen><userinput>chown root:root /usr/bin/db_* \
86 /usr/lib/libdb* /usr/include/db* &amp;&amp;
87chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
88
89</sect2>
90
91
92<sect2 id="contents-db" role="content"><title>Contents of DB</title>
93<segmentedlist>
94<segtitle>Installed programs</segtitle>
95<seglistitem><seg>db_archive, db_checkpoint, db_deadlock, db_dump,
96db_hotbackup, db_load, db_printlog, db_recover, db_stat, db_upgrade and
97db_verify
98</seg></seglistitem>
99</segmentedlist>
100
101<segmentedlist>
102<segtitle>Installed libraries</segtitle>
103<seglistitem><seg>libdb.[so,a] and libdb_cxx.[so,a]</seg></seglistitem>
104</segmentedlist>
105
106<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
107<?dbfo list-presentation="list"?>
108<?dbhtml list-presentation="table"?>
109
110<varlistentry id="db_archive">
111<term><command>db_archive</command></term>
112<listitem>
113<para>Prints the pathnames of log files that are no longer in use</para>
114<indexterm zone="ch-system-db db_archive"><primary sortas="b-db_archive">db_archive</primary></indexterm>
115</listitem>
116</varlistentry>
117
118<varlistentry id="db_checkpoint">
119<term><command>db_checkpoint</command></term>
120<listitem>
121<para>A daemon used to monitor and checkpoint database logs</para>
122<indexterm zone="ch-system-db db_checkpoint"><primary sortas="b-db_checkpoint">db_checkpoint</primary></indexterm>
123</listitem>
124</varlistentry>
125
126<varlistentry id="db_deadlock">
127<term><command>db_deadlock</command></term>
128<listitem>
129<para>A daemon used to abort lock requests when deadlocks are detected</para>
130<indexterm zone="ch-system-db db_deadlock"><primary sortas="b-db_deadlock">db_deadlock</primary></indexterm>
131</listitem>
132</varlistentry>
133
134<varlistentry id="db_dump">
135<term><command>db_dump</command></term>
136<listitem>
137<para>Converts database files to a plain-text file format readable by <command>db_load</command></para>
138<indexterm zone="ch-system-db db_dump"><primary sortas="b-db_dump">db_dump</primary></indexterm>
139</listitem>
140</varlistentry>
141
142<varlistentry id="db_hotbackup">
143<term><command>db_hotbackup</command></term>
144<listitem>
145<para>Creates <quote>hot backup</quote> or <quote>hot failover</quote> snapshots of Berkeley DB databases</para>
146<indexterm zone="ch-system-db db_hotbackup"><primary sortas="b-db_hotbackup">db_hotbackup</primary></indexterm>
147</listitem>
148</varlistentry>
149
150<varlistentry id="db_load">
151<term><command>db_load</command></term>
152<listitem>
153<para>Is used to create database files from plain-text files</para>
154<indexterm zone="ch-system-db db_load"><primary sortas="b-db_load">db_load</primary></indexterm>
155</listitem>
156</varlistentry>
157
158<varlistentry id="db_printlog">
159<term><command>db_printlog</command></term>
160<listitem>
161<para>Converts database log files to human readable text</para>
162<indexterm zone="ch-system-db db_printlog"><primary sortas="b-db_printlog">db_printlog</primary></indexterm>
163</listitem>
164</varlistentry>
165
166<varlistentry id="db_recover">
167<term><command>db_recover</command></term>
168<listitem>
169<para>Is used to restore a database to a consistent state after a failure</para>
170<indexterm zone="ch-system-db db_recover"><primary sortas="b-db_recover">db_recover</primary></indexterm>
171</listitem>
172</varlistentry>
173
174<varlistentry id="db_stat">
175<term><command>db_stat</command></term>
176<listitem>
177<para>Displays statistics for Berkeley databases</para>
178<indexterm zone="ch-system-db db_stat"><primary sortas="b-db_stat">db_stat</primary></indexterm>
179</listitem>
180</varlistentry>
181
182<varlistentry id="db_upgrade">
183<term><command>db_upgrade</command></term>
184<listitem>
185<para>Is used to upgrade database files to a newer version of Berkeley DB</para>
186<indexterm zone="ch-system-db db_upgrade"><primary sortas="b-db_upgrade">db_upgrade</primary></indexterm>
187</listitem>
188</varlistentry>
189
190<varlistentry id="db_verify">
191<term><command>db_verify</command></term>
192<listitem>
193<para>Is used to run consistency checks on database files</para>
194<indexterm zone="ch-system-db db_verify"><primary sortas="b-db_verify">db_verify</primary></indexterm>
195</listitem>
196</varlistentry>
197
198
199<varlistentry id="libdb">
200<term><filename class="libraryfile">libdb.[so,a]</filename></term>
201<listitem>
202<para>Contains functions to manipulate database files from C programs</para>
203<indexterm zone="ch-system-db libdb"><primary sortas="c-libdb">libdb</primary></indexterm>
204</listitem>
205</varlistentry>
206
207<varlistentry id="libdb_cxx">
208<term><filename class="libraryfile">libdb_cxx.[so,a]</filename></term>
209<listitem>
210<para>Contains functions to manipulate database files from C++ programs</para>
211<indexterm zone="ch-system-db libdb_cxx"><primary sortas="c-libdb_cxx">libdb_cxx</primary></indexterm>
212</listitem>
213</varlistentry>
214</variablelist>
215
216</sect2>
217
218</sect1>
Note: See TracBrowser for help on using the repository browser.