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

Re: Installation Problem

Quanah Gibson-Mount wrote:

--On Saturday, August 26, 2006 3:53 PM -0400 beno <zope@2012.vi> wrote:

Prachi Sonalkar wrote:
You may want to verify what version of Berkeley DB do
you have installed on your machine, also the Berkeley
DB library needs to be in the path.
You can also debug the problem and the current DB
version being detected in the config.log file, and try
configuring again by specifying flags while doing so
(for example:
env CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib"  ./configure

server167# ls /usr/local/BerkeleyDB.4.4/
bin     docs    include lib

server167# pwd

server167# env CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib"  ./configure

checking for Berkeley DB major version... 4
checking for Berkeley DB minor version... 4
checking for Berkeley DB link (-ldb44)... no
checking for Berkeley DB link (-ldb-44)... no
checking for Berkeley DB link (-ldb-4.4)... yes
checking for Berkeley DB version match... no
configure: error: Berkeley DB version mismatch

I suggest reading the config.log created by openldap configure. That's why it is there. It looks like it is finding a header file for a different version of BDB before it is finding the 4.4 one. But of course if you read the config.log, you'll be able to see why specifically it is failing.
configure:6198: cc -E -I/usr/local/BerkeleyDB.4.4/include conftest.c
conftest.c:16:28: ac_nonexistent.h: No such file or directory
configure:6204: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define OPENLDAP_VERSION "2.3.27"
| #define LDAP_VENDOR_VERSION 20327
| #define HAVE_MKVERSION 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>

I was unsure if it failed to find "/usr/local/BerkeleyDB.4.4/include" or "conftest.c", however, as I mentioned Saturday, the former file is in fact there, and although I couldn't find the latter file the name suggests it's part of OpenLDAP and what follows indicates it was in fact found and used:

configure:4529: $? = 1
configure:4552: checking for C compiler default output file name
configure:4555: cc -I/usr/local/BerkeleyDB.4.4/include -L/usr/local/BerkeleyDB.4.4/lib conftest.c >&5
configure:4558: $? = 0
configure:4604: result: a.out
configure:4609: checking whether the C compiler works
configure:4615: ./a.out
configure:4618: $? = 0
configure:4635: result: yes
configure:4642: checking whether we are cross compiling
configure:4644: result: no
configure:4647: checking for suffix of executables
configure:4649: cc -o conftest -I/usr/local/BerkeleyDB.4.4/include -L/usr/local/BerkeleyDB.4.4/lib conftest.c >&5
configure:4652: $? = 0
configure:4677: result:
configure:4683: checking for suffix of object files
configure:4704: cc -c -I/usr/local/BerkeleyDB.4.4/include conftest.c >&5
configure:4707: $? = 0
configure:4729: result: o
configure:4733: checking whether we are using the GNU C compiler
configure:4757: cc -c -I/usr/local/BerkeleyDB.4.4/include conftest.c >&5
configure:4763: $? = 0

So, I'm still confused. Please help me understand what I'm missing.
PS Thank you to FRLinux and I will start reading the file you recommended now.