Helpful Information
 
 
Category: LDAP Programming
Need help installing OpenLDAP

I haven't seen this via searching, so here goes. I'm looking to install openldap and am running into problems. Specifically, one of the prerequisites is the berkeley db, which I got from sleepycat.com. First off, I'm not familiar with the berkeley db, or even what type of db it is, so lack of knowledge is probably part of my problem. Anyway, I installed berkeley db according to the instructions. However, after doing so, I don't see an executable to run. Pressing on anyway, I tried installing openldap. When I tried running the configure command, everything looked fine until, of course, I got to the berkeley part. Then the following lines got pumped out:

==============================================
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb41)... no
checking for Berkeley DB link (-ldb-41)... no
checking for Berkeley DB link (-ldb-4.1)... no
checking for Berkeley DB link (-ldb-4-1)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... no
configure: error: BDB: BerkeleyDB version incompatible
==============================================

The configuration stops at this point. I can't find anything in the way of documentation as to what to do with the berkeley db after installing it. Any help at this point, including links on how to install openldap, would be greatly appreciated. Btw, I'm using RH Linux 8.0.

Do you have the patch (http://www.sleepycat.com/update/4.1.25/patch.4.1.25.html)?

I haven't installed openldap (been using iplanet) but this is what someone else ran into before I think.

Thanks, Viper. No, that didn't help. However, I figured out the problem. I installed the Berkeley DB correctly. However, I installed it in a location different than what LDAP expected. I had to run configure again with flags to point it to the Berkeley DB base directory. Specifically, I ran

env CPPFLAGS="-I /(base location of berkeley db)/include" LDFLAGS="-L /(base location of berkeley db)/lib" ./configure --with-wrappers

The "with-wrappers" part is just a configuration directive. You can run ./configure --help to find out what all the options are. Maybe this will help someone that's run into the same problem I did.

ah good to know glad it worked out

env CPPFLAGS="-I /(base location of berkeley db)/include" LDFLAGS="-L /(base location of berkeley db)/lib" ./configure --with-wrappers

That worked, thanks a lot

Good to hear. I'm still amazed that there's so little documentation on this subject. I just got O'Reilly's LDAP book. I'll let you know how good it is.

i ran into a problem with the make not working then i found that you must remove the spaces before -L and -I like so:

env CPPFLAGS="-I/(base location of berkeley db)/include" LDFLAGS="-L/(base location of berkeley db)/lib" ./configure --with-wrappers

Did you try running "make clean"?

Btw, O'Reilly's book is horrible, unfortunately. If you want to understand LDAP, as that's a main component that I'm using for a new company I'm working for, get Novell's book. Even though they talke about eDir, which is their version of LDAP, it explains all the basic concepts of LDAP. You can learn how to install OpenLDAP from the web. I sold my copy!

Tell me how "make clean" works for you.

I tried that too but I get it replies nothing to make. And this is the error that I get when i run

env CPPFLAGS="-I /usr/local/BerkeleyDB.4.3/include" LDFLAGS="-L /usr/local/BerkeleyDB.4.3/lib" ./configure --with-wrappers


checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... yes
checking for Berkeley DB version match... no
configure: error: Berkeley DB version mismatch

Please guide me on this...










privacy (GDPR)