dbTalk Databases Forums  

DB_File needs compatible versions of libdb & db.h

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss DB_File needs compatible versions of libdb & db.h in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default DB_File needs compatible versions of libdb & db.h - 05-04-2006 , 04:17 AM






Hello all,
When I try to use DB_File, I get the following error:
DB_File needs compatible versions of libdb & db.h
you have db.h version 4.1.24 and libdb version 4.1.25
Compilation failed in require at
/apollo/env/BBS-michalek/perl/lib/Amazon/Personalization/BDBStruct.pm
line 19.
BEGIN failed--compilation aborted at
/apollo/env/BBS-michalek/perl/lib/Amazon/Personalization/BDBStruct.pm
line 19.
Compilation failed in require at ./keyword-browse-ftc.pl line 26.
BEGIN failed--compilation aborted at ./keyword-browse-ftc.pl line 26.

I use perl5.6.1 and RHEL3. I have installed CPAN BerkeleyDB-0-27.
Can someone help me reg this.


Reply With Quote
  #2  
Old   
Ron
 
Posts: n/a

Default Re: DB_File needs compatible versions of libdb & db.h - 05-04-2006 , 08:45 AM






I can't help you with the Perl install at all but the error message
*seems* to suggest you
have 2 versions of Berkeley DB on your system.

You may want to check comp.lang.perl.modules to see if this issue has
been reported/answered there or post the question there.

Ron


Reply With Quote
  #3  
Old   
Paul Marquess
 
Posts: n/a

Default Re: DB_File needs compatible versions of libdb & db.h - 05-08-2006 , 03:09 AM



<njaggan (AT) gmail (DOT) com> wrote

Quote:
Hello all,
When I try to use DB_File, I get the following error:
DB_File needs compatible versions of libdb & db.h
you have db.h version 4.1.24 and libdb version 4.1.25
Compilation failed in require at
/apollo/env/BBS-michalek/perl/lib/Amazon/Personalization/BDBStruct.pm
line 19.
BEGIN failed--compilation aborted at
/apollo/env/BBS-michalek/perl/lib/Amazon/Personalization/BDBStruct.pm
line 19.
Compilation failed in require at ./keyword-browse-ftc.pl line 26.
BEGIN failed--compilation aborted at ./keyword-browse-ftc.pl line 26.

I use perl5.6.1 and RHEL3. I have installed CPAN BerkeleyDB-0-27.
Can someone help me reg this.

This is from the DB_File README

Incompatible versions of db.h and libdb
---------------------------------------

DB_File seems to have built correctly, but you get an error like this
when you run the test harness:

$ make test
PERL_DL_NONLAZY=1 /home/paul/perl/install/bin/perl5.00560 -Iblib/arch
-Iblib/lib -I/home/paul/perl/install/5.005_60/lib/5.00560/i586-linux
-I/home/paul/perl/install/5.005_60/lib/5.00560 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/db-btree..........
DB_File needs compatible versions of libdb & db.h
you have db.h version 2.3.7 and libdb version 2.7.5
BEGIN failed--compilation aborted at t/db-btree.t line 21.
...

Another variation on the theme of having two versions of Berkeley DB on
your system.

Solution: Setting the LIB & INCLUDE variables in config.in to point to the
correct directories can sometimes be enough to fix this
problem. If that doesn't work the easiest way to fix the
problem is to either delete or temporarily rename the copies
of db.h and libdb.a that you don't want DB_File to use.

Paul




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.