I have seen this one before, you will have to recompile DB_File.pm.  Maybe
someone can shade some light of why this happen, anyways here's how I fix it.

1) I changed the symlink of db.h under /usr/include (btw, I'm using redhat 7.1)
and point it to db2/db.h
i.e.   lrwxrwxrwx    1 root     root            8 Jul 12 11:05 db.h -> db2/db.h

2) untar the source of db_file.pm and modify the config.in file
  - change the value of INCLUDE to /usr/include
  - change the value of LIB to /usr/lib
  - change the value of DBNAME to -db2

3) save and compile, install the source.

-I have choose to use BerkelyDB 2 instead of 3, since I still have some berkely
db file generated with BerkelyDB2.

-I am not completely sure if this will cause any harm to the system (especially
the symlink part), but so far, everything works just fine for me.

Good luck.

Tor.


Robin Berjon wrote:

> On Tuesday 02 October 2001 20:19, [EMAIL PROTECTED] wrote:
> > When I go to start apache with my startup.pl file it fails and says
> >
> > DB_File needs compatible versions of libdb & db.h
> >         you have db.h version 3.1.17 and libdb version 2.4.14
>
> Go to http://www.sleepycat.com, grab the latest BerkeleyDB, install it,
> re-install the Perl module DB_File, and try again. It's likely that RH messed
> these up somewhere. Otherwise, check that your includes and library paths are
> in sync (some versions of BerkeleyDB use different paths).
>
> --
> _______________________________________________________________________
> Robin Berjon <[EMAIL PROTECTED]> -- CTO
> k n o w s c a p e : // venture knowledge agency www.knowscape.com
> -----------------------------------------------------------------------
> Radioactive cats have 18 half-lives.

Reply via email to