Here's how I got bsddb3 to work on my Mac.
First, download the Python module source (I used the .tar.gz
version) from https://pypi.python.org/pypi/bsddb3/5.3.0
Next, make sure BerkeleyDB is installed. I use MacPorts and installed the db48
package. This places the includefiles in /opt/local/include/db48
and the libraries in /opt/local/lib/db48
. If you're using HomeBrew, those locations might be different.
Unpack bsddb3
and install it using the correct paths:
python setup.py --berkeley-db-incdir=/opt/local/include/db48 --berkeley-db-libdir=/opt/local/lib/db48 install
After that, I had a working bsddb3
package. You still need to patch modules which try to include bsddb
and replace it with bsddb3
instead.