1<!--$Id: install.so,v 10.18 2006/10/05 01:06:05 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Installing Berkeley DB</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<a name="2"><!--meow--></a>
12<table width="100%"><tr valign=top>
13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Building Berkeley DB for UNIX/POSIX systems</dl></b></td>
14<td align=right><a href="/build_unix/flags.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/build_unix/shlib.html"><img src="/images/next.gif" alt="Next"></a>
15</td></tr></table>
16<p align=center><b>Installing Berkeley DB</b></p>
17<p>Berkeley DB installs the following files into the following locations,
18with the following default values:</p>
19<table border=1 align=center>
20<tr><th>Configuration Variables</th><th>Default value</th></tr>
21<tr><td>--prefix</td><td>/usr/local/BerkeleyDB.<b>Major</b>.<b>Minor</b></td></tr>
22<tr><td>--exec_prefix</td><td>$(prefix)</td></tr>
23<tr><td>--bindir</td><td>$(exec_prefix)/bin</td></tr>
24<tr><td>--includedir</td><td>$(prefix)/include</td></tr>
25<tr><td>--libdir</td><td>$(exec_prefix)/lib</td></tr>
26<tr><td>docdir</td><td>$(prefix)/docs</td></tr>
27<tr><th>Files</th><th>Default location</th></tr>
28<tr><td>include files</td><td>$(includedir)</td></tr>
29<tr><td>libraries</td><td>$(libdir)</td></tr>
30<tr><td>utilities</td><td>$(bindir)</td></tr>
31<tr><td>documentation</td><td>$(docdir)</td></tr>
32</table>
33<p>With one exception, this follows the GNU Autoconf and GNU Coding
34Standards installation guidelines; please see that documentation for
35more information and rationale.</p>
36<p>The single exception is the Berkeley DB documentation.  The
37Berkeley DB documentation is provided in HTML format, not in
38UNIX-style man or GNU info format.  For this reason, Berkeley DB
39configuration does not support <b>--infodir</b> or <b>--mandir</b>.
40To change the default installation location for the Berkeley DB
41documentation, modify the Makefile variable, <b>docdir</b>.</p>
42<p>When installing Berkeley DB on filesystems shared by machines of
43different architectures, please note that although Berkeley DB
44include files are installed based on the value of $(prefix), rather than
45$(exec_prefix), the Berkeley DB include files are not always
46architecture independent.</p>
47<p>To move the entire installation tree to somewhere besides
48<b>/usr/local</b>, change the value of <b>prefix</b>.</p>
49<p>To move the binaries and libraries to a different location, change the
50value of <b>exec_prefix</b>.  The values of <b>includedir</b> and
51<b>libdir</b> may be similarly changed.</p>
52<p>Any of these values except for <b>docdir</b> may be set as part of
53the configuration:</p>
54<blockquote><pre>prompt: /dist/configure --bindir=/usr/local/bin</pre></blockquote>
55<p>Any of these values, including <b>docdir</b>, may be changed when doing
56the install itself:</p>
57<blockquote><pre>prompt: make prefix=/usr/contrib/bdb install</pre></blockquote>
58<p>The Berkeley DB installation process will attempt to create any
59directories that do not already exist on the system.</p>
60<table width="100%"><tr><td><br></td><td align=right><a href="/build_unix/flags.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/build_unix/shlib.html"><img src="/images/next.gif" alt="Next"></a>
61</td></tr></table>
62<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
63</body>
64</html>
65