%general-entities; ]> $LastChangedBy$ $Date$ Berkeley DB-&db-version; Berkeley DB Introduction to Berkeley DB The Berkeley DB package contains programs and utilities used by many other applications for database related functions. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &db-md5sum; Download size: &db-size; Estimated disk space required: &db-buildsize; Estimated build time: &db-time; Berkeley DB Dependencies Optional and Installation of Berkeley DB If you wish to test Berkeley DB before installing, skip ahead to testing, then return here. Install Berkeley DB by running the following commands: cd build_unix && ../dist/configure --prefix=/usr \ --enable-compat185 \ --enable-cxx && make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" Now, as the root user: make docdir=/usr/share/doc/db-&db-version; install && chown root:root /usr/bin/db_* \ /usr/lib/libdb* /usr/include/db* && chown -R root:root /usr/share/doc/db-&db-version; Testing Berkeley DB If you have already built Berkeley DB, clean up with the following command: make realclean && cd .. Build for the Berkeley DB test by running the following commands: cd build_unix && ../dist/configure --prefix=/usr \ --enable-test --enable-tcl --with-tcl=/usr/lib && make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" && chmod 644 ../test/sijointest.tcl && sed -i 's:puts "[s,S].*::' \ ../test/sijointest.tcl To test the results, start tclsh and issue the following, replacing the 4 with a desired number of parallel processes: source ../test/test.tcl run_parallel 4 run_std Clean up with the following command: make realclean Command Explanations cd build_unix && ../dist/configure --prefix=/usr...: This replaces the normal ./configure command, as Berkeley DB comes with various build directories for different platforms. --enable-compat185: This switch enables building DB 1.85 compatibility API. --enable-cxx: This switch enables building C++ API libraries. --enable-test: Enables building the test suite (requires the two Tcl switches below). --enable-tcl --with-tcl=/usr/lib: Enables Tcl support in DB and creates the libdb_tcl libraries. --enable-java: Enables Java support in DB and creates the libdb_java libraries. --enable-rpc: Enables building the Berkeley DB RPC server. make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread": configure does not correctly handle NPTL. These variables force it to properly link against NPTL. make docdir=/usr/share/doc/db-&db-version; install: This installs the documentation in the correct place. sed -i 's:puts "[s,S].*::' ../test/sijointest.tcl: This prevents logging two notes that are not recognized by run_std. Contents Installed Programs Installed Libraries Installed Directory db_archive, db_checkpoint, db_deadlock, db_dump, db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify and berkeley_db_svc if enabled libdb.[so,a], libdb_cxx.[so,a], libdb_java.[so,a] and libdb_tcl.[so,a] /usr/share/doc/db-&db-version; Short Descriptions berkeley_db_svc is the Berkeley DB RPC server. berkeley_db_svc db_archive prints the pathnames of log files that are no longer in use. db_archive db_checkpoint is a daemon process used to monitor and checkpoint database logs. db_checkpoint db_deadlock is used to abort lock requests when deadlocks are detected. db_deadlock db_dump converts database files to a flat file format readable by db_load. db_dump db_load is used to create database files from flat files created with db_dump. db_load db_printlog converts database log files to human readable text. db_printlog db_recover is used to restore a database to a consistent state after a failure. db_recover db_stat displays database environment statistics. db_stat db_upgrade is used to upgrade database files to a newer version of Berkeley DB. db_upgrade db_verify is used to run consistency checks on database files. db_verify