[cricket-users] SOLVED (kinda) Re: DB_File needs compatible versions of libdb & db.h?

From: Jim Johnson (johnsojr@pluto.dsu.edu)
Date: Fri Nov 19 1999 - 20:19:12 PST


From: Jim Johnson <johnsojr@pluto.dsu.edu>

mod_perl seems to be the source of my problems. Went back to plain old cgi
and all is well now. I was using a stock install of RedHat 6.1 with Apache
and mod_perl (ie. I didn't compile Apache with mod_perl in it from
scratch). If I can get enough courage built up, I might try building Apach
with mod_perl installed from scratch to see if that works. Has anyone else
experience this? Any hints/tips?

Thanks,
JIM

Message: 8 Date: 18 Nov 1999 23:25:13 -0000
From: johnsojr@xxxxx.xxx.xxx
Subject: DB_File needs compatible versions of libdb & db.h?

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 ----------------------------

      GET WHAT YOU DESERVE! A NextCard Platinum VISA:
Get an APR as low as 2.9 Intro & NO annual fee! Apply online today!
<a href=" http://clickme.onelist.com/ad/nextcard16 ">Click Here</a>

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



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