6.36. GDBM-1.11

The GDBM package contains the GNU Database Manager. This is a disk file format database which stores key/data-pairs in single files. The actual data of any record being stored is indexed by a unique key, which can be retrieved in less time than if it was stored in a text file.

Approximate build time: 0.1 SBU
Required disk space: 8.5 MB

6.36.1. Installation of GDBM

Prepare GDBM for compilation:

./configure --prefix=/usr --enable-libgdbm-compat

The meaning of the configure option:


This switch enables the libgdbm compatibility library to be built, as some packages outside of LFS may require the older DBM routines it provides.

Compile the package:


To test the results, issue:

make check

Install the package:

make install

6.36.2. Contents of GDBM

Installed program: testgdbm
Installed libraries: libgdbm.{a,so} and libgdbm_compat.{a,so}

Short Descriptions


Tests and modifies a GDBM database


Contains functions to manipulate a hashed database