Test the following program with Berkeley DB
4.2:
#include <db.h>
#include <stdio.h>
int
main(void)
{
printf("%d.%d.%d
",DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
if
(DB_VERSION_MAJOR < 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR
< 2))
printf("bad\n");
else
printf("good\n");
}
If it prints out "bad", then there is a
problem with your setup. Do you have another version of "db.h" installed
somewhere (/usr/include) and could the configure script be picking that one
up?
./configure --with-berkeleydb=/usr/local/BerkeleyDB.4.2
checking
for BerkeleyDB location in /usr/local/BerkeleyDB.4.2...
/usr/local/BerkeleyDB.4.2
checking Berkeley DB Version... configure: error:
This release of cfengine requires BerkeleyDB 3.2 or later
I did install
DB 4.2 into /usr/local/BerkeleyDB.4.2
so what shall I do?
Thanks
for you help
--
Life is hard