###

Berkeley DB Reference Guide:
  Building Berkeley DB for UNIX systems

# Building for UNIX

The Berkeley DB distribution builds up to four separate libraries: the base C API Berkeley DB library and the optional C++, Java and Tcl API libraries. For portability reasons each library is standalone and contains the full Berkeley DB support necessary to build applications, that is, the C++ API Berkeley DB library does not require any other Berkeley DB libraries to build and run C++ applications.

The Berkeley DB distribution uses the Free Software Foundation's autoconf and libtool tools to build on UNIX platforms. In general, the standard configuration and installation options for these tools apply to the Berkeley DB distribution.

To perform the default UNIX build of Berkeley DB, first change to the build_unix directory, and then enter the following two commands:

>     ../dist/configure
>     make

This will build the Berkeley DB library.

To install the Berkeley DB library, enter:

>     make install

To rebuild Berkeley DB, enter:

>     make clean
>     make

If you change your mind about how Berkeley DB is to be configured, you must start from scratch by entering:

>     make realclean
>     ../dist/configure
>     make

To build multiple UNIX versions of Berkeley DB in the same source tree, create a new directory at the same level as the build_unix directory, and then configure and build in that directory:

>     mkdir build_bsdos3.0
>     cd build_bsdos3.0
>     ../dist/configure
>     make

If you have trouble with any of these commands, please send email to the addresses found in the Sleepycat Software contact information. In that email, please provide a complete copy of the commands that you entered and any output, along with a copy of any config.log or config.cache files created during configuration.

Copyright Sleepycat Software