configure doesn't find Berkeley DB

Julian Rockey linux at
Sun May 25 14:10:09 BST 2003

On Friday 23 May 2003 11:54 am, Benjamin Burkhart wrote:
> Hi Julian,
> here is config.log: ... at first it
> said "can't find -ldb" but a line in /etc/ and a ldconfig run
> fixed that. The important part starts in line 1704.
> If I leave "#include <db.h>" in configure:33689 it doesn't find db.h, if I
> put "#include "/usr/local/BerkeleyDB.4.1/include/db.h"" it says "In
> function `int main()': cannot convert `DBTYPE' to `const char*' in argument
> passing". Same if I put the test program into an extra file and try to
> compile that.
Well the main problem is that it's not finding your db.h.

When you tried hard-coding the db.h path you only changed the *first* 
occurrence. The first compile is looking for 3 <= db version < 4.1. This 
(correctly) fails, as you have 4.1. It then tries to look for 4.1 (the second 
compile) and you haven't hard-coded the db.h there.

Try using the --with-extra-includes and --with-extra-libs options to specify 
your db location.


> Any further ideas? Thanks ...
> Benjamin Burkhart

to unsubscribe from this list send an email to kdevelop-request at with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list