1<!--$Id: intro.so,v 10.35 2007/10/31 18:02:52 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: Building for UNIX/POSIX</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><a name="3"><!--meow--></a><a name="4"><!--meow--></a><a name="5"><!--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_s60/notes.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/conf.html"><img src="/images/next.gif" alt="Next"></a> 15</td></tr></table> 16<p align=center><b>Building for UNIX/POSIX</b></p> 17<p>The Berkeley DB distribution builds up to four separate libraries: the base 18C API Berkeley DB library and the optional C++, Java, and Tcl API libraries. 19For portability reasons, each library is standalone and contains the 20full Berkeley DB support necessary to build applications; that is, the C++ 21API Berkeley DB library does not require any other Berkeley DB libraries to build 22and run C++ applications.</p> 23<p>Building for Linux, Mac OS X and the QNX Neutrino release is the same 24as building for a conventional UNIX platform.</p> 25<p>The Berkeley DB distribution uses the Free Software Foundation's 26<a href="http://www.gnu.org/software/autoconf/autoconf.html">autoconf</a> 27and <a href="http://www.gnu.org/software/libtool/libtool.html">libtool</a> tools to build on UNIX platforms. In general, the standard 28configuration and installation options for these tools apply to the 29Berkeley DB distribution.</p> 30<p>To do a standard UNIX build of Berkeley DB, change to the <b>build_unix</b> 31directory and then enter the following two commands:</p> 32<blockquote><pre>/dist/configure 33make</pre></blockquote> 34<p>This will build the Berkeley DB library.</p> 35<p>To install the Berkeley DB library, enter the following command:</p> 36<blockquote><pre>make install</pre></blockquote> 37<p>To rebuild Berkeley DB, enter:</p> 38<blockquote><pre>make clean 39make</pre></blockquote> 40<p>If you change your mind about how Berkeley DB is to be configured, you must 41start from scratch by entering the following command:</p> 42<blockquote><pre>make realclean 43/dist/configure 44make</pre></blockquote> 45<p>To uninstall Berkeley DB, enter:</p> 46<blockquote><pre>make uninstall</pre></blockquote> 47<p>To build multiple UNIX versions of Berkeley DB in the same source tree, create 48a new directory at the same level as the build_unix directory, and then 49configure and build in that directory as described previously.</p> 50<table width="100%"><tr><td><br></td><td align=right><a href="/build_s60/notes.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/conf.html"><img src="/images/next.gif" alt="Next"></a> 51</td></tr></table> 52<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 53</body> 54</html> 55