Difference between revisions of "Install latest BSDDB"

(New page: Some people have encountered bugs in GRAMPS which are due to the database not working good. Installing the lastest version of the BSDDB database tends to solve the problem. [[Category:Deve...)

Python BSDDB interface

Next, go to http://pybsddb.sourceforge.net
Download bsddb3-4.5.0.tar.gz (version at the time of writing), unpack and go in the created directory. Run python setup.py, this should find your installed bsddb3 returning something like:

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

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.5-devel to build.
You can test with python test.py, but that does not work on my AMD64

Remove old BSDDB and replace with new

Not so sure yet on how this works.
I did the following:

Go into python directory:

cd /usr/lib/python2.5/

Move old version:

sudo mv bsddb bsddb_old

Go where new version is installed:

cd site-packages

Move new version to correct name:

sudo mv bsddb3 bsddb

Restart the PC. This is needed to make sure the old version is out of the memory when you run gramps (parts are preloaded by python, a commonly used scripting language).

The above should be further tested !!!

Test

You should now have GRAMPS use the latest BSDDB version. Test if all works