[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Installation problem with Berkeley DB



--On Friday, June 20, 2008 5:16 PM +0100 Nuno Manuel Martins <nuno.mmartins_externo@sonae.com> wrote:

Just to add that the last step in the link provided, running with the
explicit option to not look for version 4.3

env ol_cv_db_db_4_dot_3=no ./configure --prefix=/opt/ldap

Still does not work and I get the following output:
checking for Berkeley DB major version... 4
checking for Berkeley DB minor version... 3
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... (cached) no
checking for Berkeley DB link (-ldb-4-3)... 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 version match... Berkeley DB version mismatch
        header: Sleepycat Software: Berkeley DB 4.3.29: (September 12,
2006)         library: Berkeley DB 4.5.20: (September 20, 2006)
no
configure: error: Berkeley DB version mismatch

Without that option it does not fail at configure (although it detects
the 4.3 version) but will fail when doing "make". It is strange however
that he does seem to know that version 4.5 is on the system, just
refusing to use it.

The error states that it is finding the 4.3 HEADERS not the 4.3 LIBRARY. You need to fix it to use the HEADER path to 4.5:


Use CPPFLAGS to set the path for the headers to use.  For example:

CPPFLAGS="-I/usr/local/bdb-4.5/include"

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration