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>Installing Berkeley DB</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="build_unix.html" title="Chapter��27.�� Building Berkeley DB for UNIX/POSIX" /> 11 <link rel="prev" href="build_unix_flags.html" title="Changing compile or load options" /> 12 <link rel="next" href="build_unix_shlib.html" title="Dynamic shared libraries" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Installing Berkeley DB</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="build_unix_flags.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��27.�� 23 Building Berkeley DB for UNIX/POSIX 24 </th> 25 <td width="20%" align="right">��<a accesskey="n" href="build_unix_shlib.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="build_unix_install"></a>Installing Berkeley DB</h2> 35 </div> 36 </div> 37 </div> 38 <p>Berkeley DB installs the following files into the following locations, 39with the following default values:</p> 40 <div class="informaltable"> 41 <table border="1" width="80%"> 42 <colgroup> 43 <col /> 44 <col /> 45 </colgroup> 46 <thead> 47 <tr> 48 <th>Configuration Variables</th> 49 <th>Default value</th> 50 </tr> 51 </thead> 52 <tbody> 53 <tr> 54 <td>--prefix</td> 55 <td>/usr/local/BerkeleyDB.<span class="bold"><strong>Major</strong></span>.<span class="bold"><strong>Minor</strong></span></td> 56 </tr> 57 <tr> 58 <td>--exec_prefix</td> 59 <td>$(prefix)</td> 60 </tr> 61 <tr> 62 <td>--bindir</td> 63 <td>$(exec_prefix)/bin</td> 64 </tr> 65 <tr> 66 <td>--includedir</td> 67 <td>$(prefix)/include</td> 68 </tr> 69 <tr> 70 <td>--libdir</td> 71 <td>$(exec_prefix)/lib</td> 72 </tr> 73 <tr> 74 <td>docdir</td> 75 <td>$(prefix)/docs</td> 76 </tr> 77 </tbody> 78 </table> 79 </div> 80 <div class="informaltable"> 81 <table border="1" width="80%"> 82 <colgroup> 83 <col /> 84 <col /> 85 </colgroup> 86 <thead> 87 <tr> 88 <th>Files</th> 89 <th>Default location</th> 90 </tr> 91 </thead> 92 <tbody> 93 <tr> 94 <td>include files</td> 95 <td>$(includedir)</td> 96 </tr> 97 <tr> 98 <td>libraries</td> 99 <td>$(libdir)</td> 100 </tr> 101 <tr> 102 <td>utilities</td> 103 <td>$(bindir)</td> 104 </tr> 105 <tr> 106 <td>documentation</td> 107 <td>$(docdir)</td> 108 </tr> 109 </tbody> 110 </table> 111 </div> 112 <p>With one exception, this follows the GNU Autoconf and GNU Coding 113Standards installation guidelines; please see that documentation for 114more information and rationale.</p> 115 <p>The single exception is the Berkeley DB documentation. The 116Berkeley DB documentation is provided in HTML format, not in 117UNIX-style man or GNU info format. For this reason, Berkeley DB 118configuration does not support <span class="bold"><strong>--infodir</strong></span> or <span class="bold"><strong>--mandir</strong></span>. 119To change the default installation location for the Berkeley DB 120documentation, modify the Makefile variable, <span class="bold"><strong>docdir</strong></span>.</p> 121 <p>When installing Berkeley DB on filesystems shared by machines of 122different architectures, please note that although Berkeley DB 123include files are installed based on the value of $(prefix), rather than 124$(exec_prefix), the Berkeley DB include files are not always 125architecture independent.</p> 126 <p>To move the entire installation tree to somewhere besides 127<span class="bold"><strong>/usr/local</strong></span>, change the value of <span class="bold"><strong>prefix</strong></span>.</p> 128 <p>To move the binaries and libraries to a different location, change the 129value of <span class="bold"><strong>exec_prefix</strong></span>. The values of <span class="bold"><strong>includedir</strong></span> and 130<span class="bold"><strong>libdir</strong></span> may be similarly changed.</p> 131 <p>Any of these values except for <span class="bold"><strong>docdir</strong></span> may be set as part of 132the configuration:</p> 133 <pre class="programlisting">prompt: ../dist/configure --bindir=/usr/local/bin</pre> 134 <p>Any of these values, including <span class="bold"><strong>docdir</strong></span>, may be changed when doing 135the install itself:</p> 136 <pre class="programlisting">prompt: make prefix=/usr/contrib/bdb install</pre> 137 <p>The Berkeley DB installation process will attempt to create any 138directories that do not already exist on the system.</p> 139 </div> 140 <div class="navfooter"> 141 <hr /> 142 <table width="100%" summary="Navigation footer"> 143 <tr> 144 <td width="40%" align="left"><a accesskey="p" href="build_unix_flags.html">Prev</a>��</td> 145 <td width="20%" align="center"> 146 <a accesskey="u" href="build_unix.html">Up</a> 147 </td> 148 <td width="40%" align="right">��<a accesskey="n" href="build_unix_shlib.html">Next</a></td> 149 </tr> 150 <tr> 151 <td width="40%" align="left" valign="top">Changing compile or load options��</td> 152 <td width="20%" align="center"> 153 <a accesskey="h" href="index.html">Home</a> 154 </td> 155 <td width="40%" align="right" valign="top">��Dynamic shared libraries</td> 156 </tr> 157 </table> 158 </div> 159 </body> 160</html> 161