httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From colin_e <coli...@bigfoot.com>
Subject [users@httpd] configure of 2.0.52 fails to find Berkeley DB
Date Fri, 03 Dec 2004 15:18:21 GMT
Platform: Solaris 9 (2.9)
CC: gcc
Apache:   20.0.52
Berkeley DB: 4.2.52

I am trying to build Apache 2 as per the build on www.sunfreeware.com, 
but ultimately including
mod_perl. However the configure step fails because it's failing to find 
the Berkeley DB libs, even though
they are there.

 From the archives I can see several people have this problem, but I 
haven't found a clear solution yet.

            ---------- Symptoms ----------
Command:

./configure \
    --prefix=/local/opt/apache2 \
    --enable-mods-shared=all \
    --enable-ssl=shared \
    --enable-ssl \
    --with-ssl=/local/opt/openssl \
    --with-perl=/local/opt/perl5.8.4 \
    --with-gdbm=/local/opt/gdbm1.8.3 \
    ---with-berkeley-db=/local/opt/BerkeleyDB.4.2

(Note configure finds perl and gdbm ok.) The BerkeleyDB directory 
contains (excluding docs)-

/local/opt/BerkeleyDB.4.2/bin
/local/opt/BerkeleyDB.4.2/bin/db_archive
/local/opt/BerkeleyDB.4.2/bin/db_checkpoint
/local/opt/BerkeleyDB.4.2/bin/db_deadlock
/local/opt/BerkeleyDB.4.2/bin/db_dump
/local/opt/BerkeleyDB.4.2/bin/db_load
/local/opt/BerkeleyDB.4.2/bin/db_printlog
/local/opt/BerkeleyDB.4.2/bin/db_recover
/local/opt/BerkeleyDB.4.2/bin/db_stat
/local/opt/BerkeleyDB.4.2/bin/db_upgrade
/local/opt/BerkeleyDB.4.2/bin/db_verify
/local/opt/BerkeleyDB.4.2/lib
/local/opt/BerkeleyDB.4.2/lib/libdb-4.2.so
/local/opt/BerkeleyDB.4.2/lib/libdb-4.2.la
/local/opt/BerkeleyDB.4.2/lib/libdb-4.2.a
/local/opt/BerkeleyDB.4.2/lib/libdb.a
/local/opt/BerkeleyDB.4.2/lib/libdb.so
/local/opt/BerkeleyDB.4.2/lib/libdb-4.so
/local/opt/BerkeleyDB.4.2/include
/local/opt/BerkeleyDB.4.2/include/db.h
/local/opt/BerkeleyDB.4.2/include/db_cxx.h

The errors from configure look like-

checking for Berkeley DB 4.0 in /local/opt/BerkeleyDB.4.2... 
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb-4.0... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb4... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for -ldb... no

...repeated for  DB 3.0, 2.0, and 1.0

It looks as if the Apache configure is expecting a different directory 
structure  (with subdirs like
db1...db4) inside the Berkeley DB directory, but this is not what the 
latest Berkeley download
builds.

This appears to be a common problem, has anyone worked out the solution 
yet? Is it as simple as
moving everything inside <berkeleydbhome> into <berkeleydbhome>/db4, or 
will this break
something else?

Regards: Colin

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message