shotgunefx has asked for the wisdom of the Perl Monks concerning the following question:

I know this has been asked recently but has anyone have any luck and/or hints installing BerkeleyDB.pm? Berkeley itself is installed correctly, (Installed both 3.3.11 and 4.0.14 and had the same problems installing the Modules for it)

Using the version provided with the distros I get
perl mkconsts pm BerkeleyDB.pm > BerkeleyDB.pm.tmp && mv BerkeleyDB.pm +.tmp BerkeleyDB.pm Can't locate ExtUtils/Constant.pm in @INC (@INC contains: /usr/local/l +ib/perl5/5.6.1/sparc64-linux \ /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sparc6 +4-linux \ /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5. +6.0/sparc64-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .) + at mkconsts line 3. BEGIN failed--compilation aborted at mkconsts line 3. make: *** [BerkeleyDB.pm] Error 2
which looks like I'll have to go to 5.7.* to get this to work (I am under the impression you can't just update ExtUtils) or the CPAN way, which every test fails with
blah,blah,balh ............. Can't load 'blib/arch/auto/BerkeleyDB/Ber +keleyDB.so' \ for module BerkeleyDB: blib/arch/auto/BerkeleyDB/BerkeleyDB.so: undefi +ned symbol: db_create \ at /usr/local/lib/perl5/5.6.1/sparc64-linux/DynaLoader.pm line 206.
The docs say this indicates a missing or old db.h file. This isn't the case. Modified the makefile for it to point to it, then later changed every copy of it on the system to the newest db.h.

I've also replaced all the libdb.a * libdb.so files per the README to the newest versions without any luck.

Suggestions/Enlightenment welcome.

Thanks -Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Installing BerkeleyDB
by Zaxo (Archbishop) on Feb 23, 2002 at 01:20 UTC

    Ymmv, but I had good results from linking /usr/include/db to /usr/include/db3:

    $ ln -s /usr/include/db3 /usr/include/db
    The namespace is a little unstable and development forks have led to conflicts.

    After Compline,
    Zaxo

      No dice, but thanks.

      -Lee

      "To be civilized is to deny one's nature."
Re: Installing BerkeleyDB
by zentara (Cardinal) on Feb 23, 2002 at 17:00 UTC
    Get the BerkeleyDB.pm from CPAN, don't use the distro's version. I just installed version4, and got the error "need bleedperl" when I tried to install the BerkeleyDB.pm from the source distro. But the version from CPAN installed and works fine.
      Thanks, I had tried that and had no luck. Complained about db_create. The README indicates it's a problem with headers and libraries but the versions check out.

      Oh well.

      -Lee

      "To be civilized is to deny one's nature."