This chapter includes databases that range from single-user read/write to industrial database servers with transaction support. Generally, you will be sent here to satisfy dependencies to other applications although building a SQL server on a base LFS system is entirely possible.
The Berkeley DB package contains programs and utilities used by many other applications for database related functions.
Download (HTTP): http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz
Download size: 4 MB
Estimated Disk space required: 43 MB
Estimated build time: 1.22 SBU
Required Patch: http://www.sleepycat.com/update/4.2.52/patch.4.2.52.1
Required Patch: http://www.sleepycat.com/update/4.2.52/patch.4.2.52.2
Tcl-8.4.6 and J2SDK-1.4.2
Install Berkeley DB by running the following commands:
patch -Np0 -i ../patch.4.2.52.1 &&
patch -Np0 -i ../patch.4.2.52.2 &&
cd build_unix &&
../dist/configure --prefix=/usr \
--enable-compat185 \
--enable-cxx &&
make &&
make docdir=/usr/share/doc/db-4.2.52.2 install
If you wish to enable Java support in Berkeley DB-4.2.52.2, add --enable-java to the configure options. This requires a Java compiler. Java support is needed if you plan to use system installed Berkeley DB when compiling OpenOffice-1.1.1.
cd build_unix && ../dist/configure --prefix=/usr --enable-compat185: This replaces the normal ./configure command as Berkeley DB comes with the various build directories for different platforms.
make docdir=/usr/share/doc/db-4.2.52.2 install: This installs the documentation in the correct place.
The Berkeley DB package contains db_archive, db_checkpoint, db_deadlock, db_dump, db_load, db_printlog, db_recover, db_stat, db_upgrade and db_verify.