Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Installing Crypt::DES

by tektsu (Acolyte)
on Dec 05, 2000 at 01:49 UTC ( #44863=perlquestion: print w/replies, xml ) Need Help??
tektsu has asked for the wisdom of the Perl Monks concerning the following question:

I have installed Crypt::DES 2.01 on Perl 5.6.0. It passes make test, but after it is installed, it doesn't work.

% perl -e 'use Crypt::DES';
Can't locate object method "bootstrap" via package "Crypt::DES" at /cmbin/perl-5.6.0/lib/site_perl/5.6.0/PA-RISC2.0/Crypt/ line 21.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

This happens on my Linux, Solaris, and HP-UX boxes.

I'm out of clues. Can anyone lend me one?

kiku wa ittoki no haji kikanu wa matsudai no haji

Replies are listed 'Best First'.
Re: Installing Crypt::DES
by arturo (Vicar) on Dec 05, 2000 at 02:46 UTC

    Going by the error message, the current version of the module is trying to call a function that hasn't been defined; looking through the module source, I can tell you it ain't in that module.

    Further research suggests that bootstrap is a function defined in the DynaLoader module, which appears in the @ISA array of the Crypt::DES module as it is built, but the DynaLoader module isn't loaded via use or require in Crypt::DES source that gets built.

    Perhaps the author of Crypt::DES forgot a require DynaLoader line, which, according to my system's documentation for that module, is required.

    (I added the requisite line to my Crypt::DES source, and it works -- mail has also been sent to the module's maintainer.)

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor

      I made the change in my copy, and all is well. Thanks for the help!

      kiku wa ittoki no haji kikanu wa matsudai no haji

        By way of an update, I emailed Dave Paris, Crypt::DES's maintainer, he said both that he was aware of the problem in 2.01 and that v2.03 is on its way to CPAN soon.

        CPAN: not just good modules, good people!

        Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://44863]
Approved by root
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-06-25 16:09 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (127 votes). Check out past polls.