[cricket-users] DB_File needs compatible versions of libdb & db.h?

From: johnsojr@pluto.dsu.edu
Date: Thu Nov 18 1999 - 15:25:13 PST


From: johnsojr@pluto.dsu.edu

When I make DB_File, everything works fine, passes all the tests.
However when I run grapher.cgi I get the following error in my Apache
error_log file:

*********error**************
[Thu Nov 18 16:36:11 1999] [error]
DB_File needs compatible versions of libdb & db.h
        you have db.h version 2.7.7 and libdb version 2.4.14
BEGIN failed--compilation aborted at /home/cricket/public_html/cricket/./lib/ConfigTree/Cache.pm line 21.
BEGIN failed--compilation aborted at /home/cricket/public_html/cricket/grapher.cgi line 53.
*********error**************

In an effort to get DB_File to use the correct libdb I renamed
/usr/lib/libdb.a to /usr/lib/libdb.a.back. This didn't work
and since I really don't know what I'm doing, I don't want to
mess with any of the many other libdb files I found on my system
(listed below). At the end of this post is some code that does
work, and the versions of all the relevant software. Has anyone
had this problem before, can anyone help me?

/usr/lib/libdb.so
/usr/lib/libdb1.a
/usr/lib/libdb1.so
/usr/lib/libdb.a.back
/usr/local/BerkeleyDB/lib/libdb.a
/usr/i386-glibc20-linux/lib/libdb-2.0.7.so
/usr/i386-glibc20-linux/lib/libdb.so
/usr/i386-glibc20-linux/lib/libdb.so.2
/usr/i486-linux-libc5/lib/libdb.so.2.0.0
/usr/i486-linux-libc5/lib/libdb.so.2
/lib/libdb-2.1.2.so
/lib/libdb.so.2
/lib/libdb.so.3
/lib/libdb1-2.1.2.so
/lib/libdb1.so.2

********This code works************
use DB_File;
tie %hash, 'DB_File', 'test';
$hash{'foo'} = "bar";
print "result is: ", $hash{'foo'}, "\n";
********This code works************

Below are the versions of all (I think) relevant software.
DB_File-1.71
db-2.7.7
cricket-0.70
rrdtool-1.0.7

RedHat 6.1
apache_1.3.9
mod_perl
Time-HiRes-01.20
MD5-1.7
libwww-perl-5.46
TimeDate-1.08
SNMP_Session-0.75
lwp

--------------------------- ONElist Sponsor ----------------------------

       Thinking about putting your business on the Web?
MindSpring Biz has helped over 100,000 businesses get their .com.
             Join MindSpring Biz and save $50!
<a href=" http://clickme.onelist.com/ad/mindspring4 ">Click Here</a>

------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:06 PST