Discuss configure: error: Berkeley DB version mismatch in the LDAP Programming forum on Dev Shed. configure: error: Berkeley DB version mismatch LDAP Programming forum discussing Lightweight Directory Access Protocol information and techniques. LDAP is used to allow applications to access directory information from a server.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
configure: error: Berkeley DB version mismatch
Hi
I just started with LDAP. I am trying to install openLDAP2.2.15 on my lynux machine. I have already installed the Sleepycat Berkeley DB 4.2.52 (along with the two recommended patches). The configure script is giving the following error.
“configure: error: Berkeley DB version mismatch”.
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
I think U may be having an old DB3.x and multiple db.h files, in /usr/include, /usr/local/include, /usr/local/BerkeleyDB.4.2/include, if so, remove DB3.X or rename the db.h of version 3.
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by gary_tay
I think U may be having an old DB3.x and multiple db.h files, in /usr/include, /usr/local/include, /usr/local/BerkeleyDB.4.2/include, if so, remove DB3.X or rename the db.h of version 3.
I tried and hace checked each and every file db.h version - I still get the same error published here - Please can someonehelp here?
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
The make also ran complete once i added in the CPPFLAGS & LDFLAGS /usr/local/include & /usr/local/bin
but when i did make test following are the errors
[root@lab123 openldap-2.2.15]# make test
cd tests; make test
make[1]: Entering directory `/home/bilal/openldap-2.2.15/tests'
make[2]: Entering directory `/home/bilal/openldap-2.2.15/tests'
Initiating LDAP tests for BDB...
Running ./scripts/all...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: kill: (14117) - No such pid
ldap_bind: Can't contact LDAP server (-1)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/home/bilal/openldap-2.2.15/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/bilal/openldap-2.2.15/tests'
make: *** [test] Error 2
[root@lab123 openldap-2.2.15]#
I have installed openssl and cyrus sasl
I been trying to get ldap working but some how running into one ditch after another neeed help.
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
Most probably the test fails because you compile against the Berkeley DB specified by your configure argument, but the test runs with another Berkeley DB which is somewhere in the default path (/usr/lib, whatever). You still have an incompatible BDB somewhere which gets loaded first.
Try to run the test with the same LD_LIBRARY_PATH again, and you should be fine.
Alternatively: use the expected default location for the dbd. (I know this is not always an option.)
Posts: 76
Time spent in forums: 1 Day 7 h 19 m 27 sec
Reputation Power: 8
LDAP fails to start
Hi,
I'm having the same problem and it's driving me nuts. Have you figured out the solution for it.
After i do the make test and it fails, i try to start the server by su root -c /usr/local/libexec/slapd but it fails and i get can't find libdb-4.3.so.
I appreciate any help on that
Moe
Quote:
Originally Posted by bilalkang
The make also ran complete once i added in the CPPFLAGS & LDFLAGS /usr/local/include & /usr/local/bin
but when i did make test following are the errors
[root@lab123 openldap-2.2.15]# make test
cd tests; make test
make[1]: Entering directory `/home/bilal/openldap-2.2.15/tests'
make[2]: Entering directory `/home/bilal/openldap-2.2.15/tests'
Initiating LDAP tests for BDB...
Running ./scripts/all...
>>>>> Executing all LDAP tests for bdb
>>>>> Starting test000-rootdse ...
running defines.sh
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve the root DSE...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
Waiting 5 seconds for slapd to start...
./scripts/test000-rootdse: kill: (14117) - No such pid
ldap_bind: Can't contact LDAP server (-1)
>>>>> Test failed
>>>>> ./scripts/test000-rootdse failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/home/bilal/openldap-2.2.15/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/bilal/openldap-2.2.15/tests'
make: *** [test] Error 2
[root@lab123 openldap-2.2.15]#
I have installed openssl and cyrus sasl
I been trying to get ldap working but some how running into one ditch after another neeed help.
Posts: 1
Time spent in forums: 8 m 8 sec
Reputation Power: 0
Quote:
Originally Posted by Moe_w90
Hi,
I'm having the same problem and it's driving me nuts. Have you figured out the solution for it.
After i do the make test and it fails, i try to start the server by su root -c /usr/local/libexec/slapd but it fails and i get can't find libdb-4.3.so.
I appreciate any help on that
Moe
Hi,
Here's what worked for me:
- installed berkeley db (Vers. 4.2.52 with patches). Files show up in /usr/local/BerkeleyDB.4.2 (BTW: Suse Linux 9.2).
- before running the openldap configure script, set the environment variables as follows:
- followed the installation instructions for openldap to the letter:
$ cd /data/install/openldap/openldap-2.2.23 (my installation directory)
$ ./configure
$ make depend
$ make
$ make test (tests run fine)
$ su
# make install
- before starting slapd, I made a symbolic link to the shared library:
# cd /usr/local/lib
# ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
# ldconfig
- now, I could start slapd:
# /usr/local/openldap-2.2.23/libexec/slapd
- followed the installation instructions for openldap to the letter:
$ cd /data/install/openldap/openldap-2.2.23 (my installation directory)
$ ./configure
$ make depend
$ make
$ make test (tests run fine)
$ su
# make install
- before starting slapd, I made a symbolic link to the shared library:
# cd /usr/local/lib
# ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
# ldconfig
- now, I could start slapd:
# /usr/local/openldap-2.2.23/libexec/slapd
- followed the installation instructions for openldap to the letter:
$ cd /data/install/openldap/openldap-2.2.23 (my installation directory)
$ ./configure
$ make depend
$ make
$ make test (tests run fine)
$ su
# make install
- before starting slapd, I made a symbolic link to the shared library:
# cd /usr/local/lib
# ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
# ldconfig
- now, I could start slapd:
# /usr/local/openldap-2.2.23/libexec/slapd
Hope that helps.
regards
Daniel
Hi
Thanx for this find out. Only thing extra I had to do before running "make" was to run ldconfig. Then running make test and make install makes openldap work with Berkeley-4.3 as well, without any problems.
- followed the installation instructions for openldap to the letter:
$ cd /data/install/openldap/openldap-2.2.23 (my installation directory)
$ ./configure
$ make depend
$ make
$ make test (tests run fine)
$ su
# make install
- before starting slapd, I made a symbolic link to the shared library:
# cd /usr/local/lib
# ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
# ldconfig
- now, I could start slapd:
# /usr/local/openldap-2.2.23/libexec/slapd
Hope that helps.
regards
Daniel
hey,,,, this is a great solution... and under debian sarge 3.1.... ROX..!!! work wonderfull
Posts: 1
Time spent in forums: 15 m 34 sec
Reputation Power: 0
Solaris 10 [SPARC] resolution
Quote:
Originally Posted by bilalkang
This LD PATH saved me from the mismatch too.but problem is when i run make i get a error (tls) and ends. i have tried reinstalling openssl too.
wht do i do .
this is what worked for me. it turns out that gcc installed in /usr/sfw/bin/gcc was either broken or just broke enough to let the build fail. so,i went out to my favorite sunfreeware.com mirror (sunfreeware.mirrors.tds.net/indexsparc10.html) and grabbed gcc342 and installed it( in all 8 of my solars 10 zones too).
keep in mind that you will need to add the openssl paths to LDFLAGS, CPPFLAGS and LD_LIBRARY_PATH if you desire ssl support. the configure script seemed to detect and use the native solaris 10 SASL and kerberos libs without any intervention from me.
all was fine as frogs hair after that. make depend, make, make test all worked wonderfully. hope this assists someone in their battles.
on a side note, i was able to reproduce this behavior in all of my zones as well.
Posts: 1
Time spent in forums: 8 m 45 sec
Reputation Power: 0
Hi,
It didn't work for me on RHAS4.
I want to compile openldap 3.33.4 with the option multimaster. I replaced export CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include" by export CPPFLAGS="-DSLAPD_MULTIMASTER -I/usr/local/BerkeleyDB.4.2/include" but the make test command failed :
>>>>> Starting test017-syncreplication-refresh ...
running defines.sh
Starting master slapd on TCP/IP port 9011...
Using ldapsearch to check that master slapd is running...
Using ldapadd to create the context prefix entry in the master...
Starting slave slapd on TCP/IP port 9012...
Using ldapsearch to check that slave slapd is running...
Using ldapadd to populate the master directory...
Waiting 15 seconds for syncrepl to receive changes...
Using ldapmodify to modify master directory...
Waiting 15 seconds for syncrepl to receive changes...
Try updating the slave slapd...
ldapmodify should have failed (50)!
>>>>> ./scripts/test017-syncreplication-refresh failed (exit 50)
make[2]: *** [bdb-yes] Erreur 50
make[2]: Leaving directory `/produits/install/openldap-2.3.34/tests'
make[1]: *** [test] Erreur 2
make[1]: Leaving directory `/produits/install/openldap-2.3.34/tests'
make: *** [test] Erreur 2