LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   OpenLDAP complains of Berkeley DB version mismatch (https://www.linuxquestions.org/questions/slackware-14/openldap-complains-of-berkeley-db-version-mismatch-303490/)

[GOD]Anck 03-19-2005 06:44 AM

OpenLDAP complains of Berkeley DB version mismatch
 
I'm trying to install OpenLDAP on a Slackware 10.1 system. I've downloaded the latest release from www.openldap.org, which is 2.2.24. When I run ./configure, it complains of a Berkeley DB version mismatch:

Code:

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)... no
checking for Berkeley DB link (-ldb-4-3)... no
checking for Berkeley DB link (-ldb42)... no
checking for Berkeley DB link (-ldb-42)... no
checking for Berkeley DB link (-ldb-4.2)... yes
checking for Berkeley DB version match... Berkeley DB version mismatch
        header: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
        library: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
no
configure: error: Berkeley DB version mismatch

I've tried getting the latest version of Berkeley DB, 4.3.27, and it compiled and installed fine but OpenLDAP's ./configure then can't find it at all:

Code:

checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available

How to proceed?

Remmis 03-19-2005 07:22 AM

It sounds like the db.h the configure script locates is a header file for DB version 3.3.11 but the library it locates is version 4.2.52. I believe on that system /usr/include/db.h is a symlink to /usr/include/db3/db.h. If you do "ln -sf /usr/include/db4/db.h /usr/include/db.h" that should fix it. (or point to wherever the 4.2.52 header resides)

[GOD]Anck 03-19-2005 07:35 AM

And so it does! Thank you. :D

lite123 01-16-2009 10:18 AM

Hello,

I installed OpenLDAP 2.4.13 in Red Hat 9. I make All the steps for the compilation and installing. All the process was fine, but I run the command make test, after to run make (to OpenLDAP), the test begin, but it is stop and cannot finish. There is not any error message...I make ctrl+c to force the finish. I run make install and the installation was good. But I cannot find the file ldap to begin the ldap service.

What can I do?

drokmed 01-16-2009 11:24 AM

Quote:

Originally Posted by lite123 (Post 3410989)
Hello,

I installed OpenLDAP 2.4.13 in Red Hat 9. I make All the steps for the compilation and installing. All the process was fine, but I run the command make test, after to run make (to OpenLDAP), the test begin, but it is stop and cannot finish. There is not any error message...I make ctrl+c to force the finish. I run make install and the installation was good. But I cannot find the file ldap to begin the ldap service.

What can I do?

Hi lite123 and welcome to the forums!

Since you are new, I'll throw you a few pointers.

First, your question is on Red Hat. This is the slackware forum. I suggest you post in the redhat forum on this board:

http://www.linuxquestions.org/questions/red-hat-31/

Second, you resurrected a thread that's five years old. You will get much better luck just creating a new thread in the redhat forum, and just post what you posted above. Somebody will most likely help you there.

It's been a few years since I installed openldap, so I'm not the best one to answer your question.

Again, welcome to the forums!

lite123 01-16-2009 11:42 AM

Thank you for answer...I am new here...

Best Regards..

whathappen 06-08-2009 01:54 AM

Just export variable LD_LIBRARY_PATH to directory lib in sourcode

example :

i extract source code to /root/ldap/db-4.7.25

so i export variable as

LD_LIBRARY_PATH=/root/ldap/db-4.7.25/build_unix/.libs

export LD_LIBRARY_PATH

whathappen 06-08-2009 01:54 AM

Just export variable LD_LIBRARY_PATH to directory lib in sourcode

example :

i extract source code to /root/ldap/db-4.7.25

so i export variable as

LD_LIBRARY_PATH=/root/ldap/db-4.7.25/build_unix/.libs

export LD_LIBRARY_PATH


see detail at http://blogitknowledge.wordpress.com


All times are GMT -5. The time now is 04:20 AM.