8 Berkeley DB Notes

As of SICStus 3.8, the library module library(db) has been replaced by library(bdb). The functionality is similar, but library(bdb) is built on top of Berkeley DB. Berkeley DB can be downloaded from:

     http://www.oracle.com

The recommended way to install Berkeley DB for Mac OS X 10.6 is to install it from source code. To build a universal version of Berkeley DB 4.1.25, and install it in the default location on Mac OS X 10.6, you would do something like the following from a command prompt after unpacking the source archive:

     cd db-4.1.25/build_unix/
     env LDFLAGS='-arch x86_64 -arch i386' CFLAGS='-arch x86_64 -arch i386' ../dist/configure
     make LDFLAGS=-Wl,-arch,x86_64,-arch,i386
     sudo make install

library(bdb) has been verified to work using Berkeley DB version 4.1.25. It does not work with earlier versions.

When using Berkeley DB under Windows, you should set the PATH environment variable to contain the path to libdb41.dll (see Windows). Consult the Berkeley DB documentation for further info.