On Wed, 26 Sep 2001, Gilles Detillieux wrote:

> Date: Wed, 26 Sep 2001 10:42:12 -0500 (CDT)
> From: Gilles Detillieux <[EMAIL PROTECTED]>
> To: Don Brady <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htdig] whatsnew on Redhat 6.2 with HtDig 3.1.5
> 
> According to Don Brady:
> > Let me try to explain better:
> > 
> > (1)  ht:://Dig comes with and uses Berkeley DB 1 (an older version of 
> > Berkeley DB).
> 
> The db/README file in the 3.1.5 source distribution states:
> 
>    This is version 2.6.4 (12/16/98) of Sleepycat Software's Berkeley DB
>    product.
> 
> Is this version number different from the DB versions to which you're
> referring?
> 
> > (2)  Whatsnew.pl uses the BerkeleyDB Perl interface which states in part:
> > "BerkeleyDB is a module which allows Perl programs to make use of the 
> > facilities provided by Berkeley DB version 2 or 3. (Note: if you want to 
> > use version 1 of Berkeley DB with Perl you need the DB_File module)."
> > 
> > Thus one cannot use whatsnew.pl with htdig as far as I can determine, 
> > because they require different versions of Berkeley db itself (version 2 or 
> > 3 for whatsnew versus version 1 for htdig).
> 
> Well, I haven't personally used whatsnew.pl, but it was written to work
> with htdig 3.1.5, and others do use it successfully.  I don't know the
> root cause of the incompatibility you're observing on your system, but
> I can assure you it's not universal.  You're not the first person ever
> to try out this script.  Jumping to the broad and absolute conclusion
> that one cannot use this script with htdig does little to contribute to
> finding the incompatibility on your system.
> 
> Joe, as someone with more experience with the whatsnew.pl script, can you
> make any suggestions as to what may be the problem on Don's system?

I attach the message I sent you on September 4; I believe it is in the
mail archives too.

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]

Date: Tue, 4 Sep 2001 21:16:53 -0700 (PDT)
From: Joe R. Jah <[EMAIL PROTECTED]>
To: Don Brady <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: [htdig] whatsnew.pl problem

On Tue, 4 Sep 2001, Don Brady wrote:

> Date: Tue, 04 Sep 2001 22:49:25 -0400
> From: Don Brady <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [htdig] whatsnew.pl problem
> 
> At 08:38 PM 9/4/2001 -0500, Geoff Hutchison wrote:
> >At 7:48 PM -0400 9/4/01, Don Brady wrote:
> >>[root@ag /root]# db_stat -d /var/lib/htdig/db.docdb
> >>db_stat: /var/lib/htdig/db.docdb: btree version 6 requires a version upgrade
> >>db_stat: /var/lib/htdig/db.docdb: btree version 6 requires a version upgrade
> >>db_stat: open: /var/lib/htdig/db.docdb: DB_OLDVERSION: Database requires 
> >>a version upgrade
> >...
> >>Built with Berkeley DB: 2.3.1 -> 2.7.7
> >
> >>  Does it have something to do with  the database being built with 
> >> Berkeley DB2 (according to the above), but Redhat 7.1 having DB3 installed?
> >
> >I would guess you also have Berkeley DB2 installed as well?
> 
> Well I think Berkely DB version 3, which is installed, is supposed to be 
> compatible with Berkeley DB version 2 as well.
> 
> >  I would guess it depends a lot on what the BerkelyDB.pm is expecting. 
> > Does that come with a README? '
> 
> Yes, it says in part:
> 
> This Perl module provides an interface to most of the functionality
> available in Berkeley DB versions 2 and 3. In general it is safe to assume
> that the interface provided here to be identical to the Berkeley DB
> interface. The main changes have been to make the Berkeley DB API work
> in a Perl way. Note that if you are using Berkeley DB 2.x, the new
> features available in Berkeley DB 3.x are not available via this module.

Read on;)
-----------------------------8<-------------------------------
PREREQUISITES
-------------

Before you can build BerkeleyDB you need to have the following
installed on your system:

    * Perl 5.004_04 or greater.

    * Berkeley DB Version 2.6.4 or greater
-----------------------------8<-------------------------------

> > >When you compiled it, what did it link against?
> 
> It looks as if version 3.
> 
> 
> Perhaps the problem is that htdig was compiled against version 2 of Berkely 
> DB, and so creates version 2 type DB files?   I am using a (somewhat older) 
> pre-compliled Redat RPM rather than installing htdig from your install method.
> compiling itself.    If this is plausible, I will re-install it using your 
> installation instructions.

Continue reading the README file;)
----------------------------------8<----------------------------------
Linux Notes
-----------

Newer versions of Linux (e.g. RedHat 6, SuSe 6) ship with a C library
that has version 2.x of Berkeley DB linked into it. This makes it
difficult to build this module with anything other than the version of
Berkeley DB that shipped with your Linux release. If you do try to use
a different version of Berkeley DB you will most likely get the error
described in the "Incompatible versions of db.h and libdb" section of
this file.
...
----------------------------------8<----------------------------------

Don't stop there; there is more;^)

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]



_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to