• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/programmer_reference/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>Chapter 27.  Building Berkeley DB for UNIX/POSIX</title>
7    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10    <link rel="up" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
11    <link rel="prev" href="build_s60_notes.html" title="S60 notes" />
12    <link rel="next" href="build_unix_conf.html" title="Configuring Berkeley DB" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Chapter 27. 
19		Building Berkeley DB for UNIX/POSIX
20        </th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="build_s60_notes.html">Prev</a> </td>
24          <th width="60%" align="center"> </th>
25          <td width="20%" align="right"> <a accesskey="n" href="build_unix_conf.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="chapter" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title"><a id="build_unix"></a>Chapter 27. 
35		Building Berkeley DB for UNIX/POSIX
36        </h2>
37          </div>
38        </div>
39      </div>
40      <div class="toc">
41        <p>
42          <b>Table of Contents</b>
43        </p>
44        <dl>
45          <dt>
46            <span class="sect1">
47              <a href="build_unix.html#build_unix_intro">Building for UNIX/POSIX</a>
48            </span>
49          </dt>
50          <dt>
51            <span class="sect1">
52              <a href="build_unix_conf.html">Configuring Berkeley DB</a>
53            </span>
54          </dt>
55          <dt>
56            <span class="sect1">
57              <a href="build_unix_small.html">Building a small memory footprint library</a>
58            </span>
59          </dt>
60          <dt>
61            <span class="sect1">
62              <a href="build_unix_flags.html">Changing compile or load options</a>
63            </span>
64          </dt>
65          <dt>
66            <span class="sect1">
67              <a href="build_unix_install.html">Installing Berkeley DB</a>
68            </span>
69          </dt>
70          <dt>
71            <span class="sect1">
72              <a href="build_unix_shlib.html">Dynamic shared libraries</a>
73            </span>
74          </dt>
75          <dt>
76            <span class="sect1">
77              <a href="build_unix_test.html">Running the test suite under UNIX</a>
78            </span>
79          </dt>
80          <dt>
81            <span class="sect1">
82              <a href="build_unix_notes.html">Architecture independent FAQ</a>
83            </span>
84          </dt>
85          <dt>
86            <span class="sect1">
87              <a href="build_unix_aix.html">AIX</a>
88            </span>
89          </dt>
90          <dt>
91            <span class="sect1">
92              <a href="build_unix_freebsd.html">FreeBSD</a>
93            </span>
94          </dt>
95          <dt>
96            <span class="sect1">
97              <a href="build_unix_hpux.html">HP-UX</a>
98            </span>
99          </dt>
100          <dt>
101            <span class="sect1">
102              <a href="build_unix_irix.html">IRIX</a>
103            </span>
104          </dt>
105          <dt>
106            <span class="sect1">
107              <a href="build_unix_linux.html">Linux</a>
108            </span>
109          </dt>
110          <dt>
111            <span class="sect1">
112              <a href="build_unix_macosx.html">Mac OS X</a>
113            </span>
114          </dt>
115          <dt>
116            <span class="sect1">
117              <a href="build_unix_osf1.html">OSF/1</a>
118            </span>
119          </dt>
120          <dt>
121            <span class="sect1">
122              <a href="build_unix_qnx.html">QNX</a>
123            </span>
124          </dt>
125          <dt>
126            <span class="sect1">
127              <a href="build_unix_sco.html">SCO</a>
128            </span>
129          </dt>
130          <dt>
131            <span class="sect1">
132              <a href="build_unix_solaris.html">Solaris</a>
133            </span>
134          </dt>
135          <dt>
136            <span class="sect1">
137              <a href="build_unix_sunos.html">SunOS</a>
138            </span>
139          </dt>
140          <dt>
141            <span class="sect1">
142              <a href="build_unix_ultrix.html">Ultrix</a>
143            </span>
144          </dt>
145        </dl>
146      </div>
147      <div class="sect1" lang="en" xml:lang="en">
148        <div class="titlepage">
149          <div>
150            <div>
151              <h2 class="title" style="clear: both"><a id="build_unix_intro"></a>Building for UNIX/POSIX</h2>
152            </div>
153          </div>
154        </div>
155        <p>The Berkeley DB distribution builds up to four separate libraries: the base
156C API Berkeley DB library and the optional C++, Java, and Tcl API libraries.
157For portability reasons, each library is standalone and contains the
158full Berkeley DB support necessary to build applications; that is, the C++
159API Berkeley DB library does not require any other Berkeley DB libraries to build
160and run C++ applications.</p>
161        <p>Building for Linux, Mac OS X and the QNX Neutrino release is the same
162as building for a conventional UNIX platform.</p>
163        <p>The Berkeley DB distribution uses the Free Software Foundation's
164<a class="ulink" href="http://www.gnu.org/software/autoconf/autoconf.html" target="_top">autoconf</a>
165and <a class="ulink" href="http://www.gnu.org/software/libtool/libtool.html" target="_top">libtool</a> tools to build on UNIX platforms.  In general, the standard
166configuration and installation options for these tools apply to the
167Berkeley DB distribution.</p>
168        <p>To do a standard UNIX build of Berkeley DB, change to the <span class="bold"><strong>build_unix</strong></span>
169directory and then enter the following two commands:</p>
170        <pre class="programlisting">../dist/configure
171make</pre>
172        <p>This will build the Berkeley DB library.</p>
173        <p>To install the Berkeley DB library, enter the following command:</p>
174        <pre class="programlisting">make install</pre>
175        <p>To rebuild Berkeley DB, enter:</p>
176        <pre class="programlisting">make clean
177make</pre>
178        <p>If you change your mind about how Berkeley DB is to be configured, you must
179start from scratch by entering the following command:</p>
180        <pre class="programlisting">make realclean
181../dist/configure
182make</pre>
183        <p>To uninstall Berkeley DB, enter:</p>
184        <pre class="programlisting">make uninstall</pre>
185        <p>To build multiple UNIX versions of Berkeley DB in the same source tree, create
186a new directory at the same level as the build_unix directory, and then
187configure and build in that directory as described previously.</p>
188      </div>
189    </div>
190    <div class="navfooter">
191      <hr />
192      <table width="100%" summary="Navigation footer">
193        <tr>
194          <td width="40%" align="left"><a accesskey="p" href="build_s60_notes.html">Prev</a> </td>
195          <td width="20%" align="center"> </td>
196          <td width="40%" align="right"> <a accesskey="n" href="build_unix_conf.html">Next</a></td>
197        </tr>
198        <tr>
199          <td width="40%" align="left" valign="top">S60 notes </td>
200          <td width="20%" align="center">
201            <a accesskey="h" href="index.html">Home</a>
202          </td>
203          <td width="40%" align="right" valign="top"> Configuring Berkeley DB</td>
204        </tr>
205      </table>
206    </div>
207  </body>
208</html>
209