For some project of mine, I thought I needed LDAP, and installed it:
apt-get install ldap-utils slapd
Unfortunately, I kept getting the error:
Unrecognized database type (bdb)
or
Unrecognized database type (sql)
Depending on whatever database I tried. After several hours of putting a lot of effort, sweat, and tears into it, I decided to compile LDAP myself. After a couple of seconds, it said that I was missing some libraries for the Berkely DataBase (BDB) support. This made some bells ring, and it didn’t take too long, to figure out that I needed the package libdb*-dev in order to use the LDAP packages.
It wasn’t much of a problem to install LDAP now, after all, this is what should have been done in the start:
apt-get install libdb4.4-dev ldap-utils slapd
Btw, after having it all working, I was told that I wasn’t going to need it after all……