Changes

Jump to: navigation, search

Install latest BSDDB

549 bytes removed, 12:48, 28 May 2007
no edit summary
You can test with python test.py, but that does not work on my AMD64
=== Remove old BSDDB and replace with new in GRAMPS===Not so sure yet on how this works. * Go into the GRAMPS directoryI did * Open the followingfiles:# Go into python directory: <pre>cd /gramps-2.2.8/usrsrc/libDbLoader.py /python2gramps-2.52.8/<src/pre>Editors/_EditFamily.py# Move old version: <pre>sudo mv bsddb bsddb_old< /gramps-2.2.8/src/GrampsDb/pre>_GrampsBSDDB.py# Go where new version is installed: <pre>cd site /gramps-2.2.8/src/GrampsDb/_GrampsDbBase.py /gramps-packages<2.2.8/pre>src/GrampsDb/_GrampsDBCallback.py# Move new version to correct name: <pre>sudo mv bsddb3 bsddb< /gramps-2.2.8/src/GrampsDb/pre>_ReadGedcom.py# Restart the PC /gramps-2.2.8/src/GrampsLogger/_ErrorReportAssistant. This is needed to make sure the old version is out of the memory when you run py /gramps (parts are preloaded by python, a commonly used scripting language)-2.2.8/src/plugins/Leak.py
The above should be further tested !!!* In these files, look up the line import bsddb:Change this line into import bsddb3
It does not work unless you do some changes in the bsddb3 source files.
It is not neccesary to do these steps if the following files in gramps are changed'''The above should be further tested !!!'''
/gramps-2.2.8/src/DbLoader.py
 
/gramps-2.2.8/src/Editors/_EditFamily.py
 
/gramps-2.2.8/src/GrampsDb/_GrampsBSDDB.py
 
/gramps-2.2.8/src/GrampsDb/_GrampsDbBase.py
 
/gramps-2.2.8/src/GrampsDb/_GrampsDBCallback.py
 
/gramps-2.2.8/src/GrampsDb/_ReadGedcom.py
 
/gramps-2.2.8/src/GrampsLogger/_ErrorReportAssistant.py
 
/gramps-2.2.8/src/plugins/Leak.py
 
by replaceing all bsddb to bsddb3.
In this way bsddb and bsddb3 can coexist.
== Test ==
You should now have GRAMPS use the latest BSDDB version. Test if all works

Navigation menu