8.37. GDBM-1.23

The GDBM package contains the GNU Database Manager. It is a library of database functions that uses extensible hashing and works like the standard UNIX dbm. The library provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data.

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

8.37.1. Installation of GDBM

Prepare GDBM for compilation:

./configure --prefix=/usr    \
            --disable-static \

The meaning of the configure option:


This switch enables building the libgdbm compatibility library. 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

8.37.2. Contents of GDBM

Installed programs: gdbm_dump, gdbm_load, and gdbmtool
Installed libraries: libgdbm.so and libgdbm_compat.so

Short Descriptions


Dumps a GDBM database to a file


Recreates a GDBM database from a dump file


Tests and modifies a GDBM database


Contains functions to manipulate a hashed database


Compatibility library containing older DBM functions