ImportError: No module named _bsddb
I don't want to re-compile the entire Python package or install a second Python package for one measly shared object file.
ImportError: No module named _bsddb
gcc -O2 -arch x86_64 -arch i386 -shared -o _bsddb.so _bsddb.c -I/usr/local/BerkeleyDB/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -L/usr/local/lib -L/usr/local/BerkeleyDB/lib -ldb -framework Python
_bsddb.c:4525: error: ‘DB_XIDDATASIZE’ undeclared (first use in this function)
_bsddb.c:4525: error: (Each undeclared identifier is reported only once
_bsddb.c:4525: error: for each function it appears in.)
_bsddb.c: In function ‘DBTxn_prepare’:
_bsddb.c:5950: error: ‘DB_XIDDATASIZE’ undeclared (first use in this function)
_bsddb.c: In function ‘init_bsddb’:
_bsddb.c:7099: error: ‘DB_XA_CREATE’ undeclared (first use in this function)
solving the DB_XIDDATASIZE and DB_XA_CREATE problems