Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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
[perldigious]: Quick question, is undef %hash a recommended/good way to delete an entire hash structure from memory? Or sould I be doing it some other way?
[1nickt]: The best way is to scope it tightly so it just goes away when you are finished with it.
[perldigious]: but... but... perldigious is the unvirtuous kind of lazy in this case. :-)
[perldigious]: Just kidding. Thanks 1nickt, I'll go ahead and do it the right way. An extra set of brackets and a little extra indentation isn't too much to ask.
[karlgoethebier]: perldigious: perhaps a block if you are paranoid ;-)
[choroba]: but undef %hash and %hash = () both work, too, but the first one keeps the memory allocated, while the latter makes it available for other parts of the program.
[choroba]: iirc

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-07-21 19:49 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.