InstallGuide BerkeleyDBInstall
Go up: ParentWiki
Berkeley DB (version 4.1.24 or higher) is one of the three database systems that can be configured to provide data storage for Jabberd 2. This appendix describes how to download the Berkeley DB source in order to build and install if for Jabberd 2. The advantage of using Berkeley DB for Jabberd data storage is that Berkeley DB requires no configuration, maintenance or administration after it is installed.
Download the file db-4.1.nn.tar.gz from the Berkeley DB Downloads page, where "nn" is the latest version of Berkeley DB. At the time of writing, Berkeley DB 4.1.25 is the most current version, and is used in the examples below.
Note that if you choose a version with strong encryption, you should follow your local laws if you download it.
Change to the directory where you downloaded the file above and then extract the Berkeley DB files by running the command:
tar -zxvf db-4.1.25.tar.gz
patch -p0 < patch.4.1.25.1
Change to the build_unix directory of the Berkeley DB directory just created:
cd db-4.1.25/build_unix
../dist/configure --prefix=/usr
Note that the default configuration should make Berkeley DB work with Jabberd 2 — enabling Berkeley DB optimizations may create compatibility issues for Jabberd 2.
Build Berkeley DB on your system:
make
Switch to the super-user:
su
make install
© 2003 Will Kamishlian and Robert Norris
Image(http://jabberd.jabberstudio.org/2/docs/ccommons.gif, right)This work is licensed under the Creative Commons Attribution-!NonCommercial-!ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.