[Date Prev][Date Next]
Re: Documentation about finding correct BerkeleyDB version (ITS#3375)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Thank you very much for your response!
After your message cleared me, what was the real prob, I inserted following statement before OpenLDAP compilation commands: "CFLAGS="-I/usr/local/BerkeleyDB.4.2/include -L/usr/local/BerkeleyDB.4.2/lib" CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include -L/usr/local/BerkeleyDB.4.2/lib" LDFLAGS="-I/usr/local/BerkeleyDB.4.2/include -L/usr/local/BerkeleyDB.4.2/lib"", and compilation succeeded. Probably statement could be a lot shorter, but after this many hours of failed compilations you just want it to work.
I still think, that documentation about setting these environment variables in this BDB mismatch situation should be updated. At least in Faq-o-matic, as many thinks were documented, like I did read it about env setting and so on, but could not fix problem, as this BDB version mismatch thing was not documented.
Thank you again!
Kurt D. Zeilenga wrote:
You're misreading the ./configure error message. In this
test (version mismatch), it's expecting the version found in
the header to match the version in the library. It didn't find that.
The check to see whether the version found in both is appropriate
is independent. The error messages were updated in HEAD.
I've now backed ported to OPENLDAP_REL_ENG_2_2.
At 08:14 AM 10/27/2004, firstname.lastname@example.org wrote:
Full_Name: Sami Lehtimäki
Submission from: (NULL) (126.96.36.199)
Please, clear advises about how to make OpenLDAP configure find correct version
of Berkeley DB. Document, like http://www.openldap.org/doc/admin22/install.html
should contain this information.
I had a fairly new version of Berkeley DB (4.2.52) installed by distro. When
compiling OpenLDAP, it refused to use this version and requested older (3.3.11
version). Still all documentation about OpenLDAP states that newest version of
BDB should be used.
Then I tested if this problem exists if I compile BDB, but it did not help.
Then I was changing my environment settings, to make it find this 3.3.11
version, which should also be already installed by distro.
I did find 3.3.11 version with command: "grep DB_VERSION_STRING
/usr/include/db3/db.h" but I could not set environment for that BDB and always
got the same complainment.
Guide to set environment, to find correct BDB version should be written to
OpenLDAP's Faq-o-matic and installation documentation. Specially as this version
of OpenLDAP (2.2.17) did not accept newest version of BDB (4.2.52).
Now I'm compiling BDB 3.3.11 from sources, if it would help.
Output of configuration:
"checking for db.h... yes
checking for Berkeley DB link (default)... 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
expected: Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
got: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
configure: error: Berkeley DB version mismatch".