###

Berkeley DB Reference Guide:
  Building Berkeley DB for UNIX systems

# Installing Berkeley DB

Berkeley DB installs the following files into the following locations, with the following default values:

Configuration Variables | Default value
--- | ---
prefix | /usr/local/BerkeleyDB.Major.Minor
exec_prefix | $(prefix)
bindir | $(exec_prefix)/bin
includedir | $(prefix)/include
libdir | $(exec_prefix)/lib
docdir | $(prefix)/docs
Files | Default location
include files | $(includedir)
libraries | $(libdir)
utilities | $(bindir)
documentation | $(docdir)

This follows the GNU Autoconf and GNU Coding Standards installation guidelines, please see that documentation for more information and rationale.

To move the entire installation tree to somewhere besides /usr/local, change the value of prefix.

To move the binaries and libraries to a different location, change the value of exec_prefix. The values of includedir and libdir may be similarly changed.

Any of these values except for docdir may be set as part of configuration:

>     ../dist/configure --bindir=/usr/local/bin

Any of these values including docdir may be changed when doing the install itself:

>     make prefix=/usr/contrib/bdb install

The Berkeley DB installation process will attempt to create any directories that do not already exist on the system.

Copyright Sleepycat Software