Python BSDDB interface

Next, go to pybsddb ([1]).
Download the version compatible with the downloaded bsddb version, eg bsddb3 5.1.1 is tested with 4.2 and 5.1. Unpack and go in the created directory. Run python setup.py, this should find your installed bsddb3 returning something like:

Found Berkeley DB 5.1 installation.
include files in /usr/local/BerkeleyDB.5.1/include
library files in /usr/local/BerkeleyDB.5.1/lib
library name is libdb-5.1

Now run python setup.py build to make the package, and lastly install it with

sudo python setup.py install

which installs bsddb3.

Note: you need libpython2.x-devel to build this, with x your version of python.