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

Greetings Perl Monks! I've an application that requres MD5 digests to work. The application works well under the perl interpreter but when compiling the Digest::MD5 module from CPAN I get a warning error with 'require Digest::Perl::MD5'. I cannot locate this beast anywhere and my application bales out when I call the module with a statement like
$MyMd5 = Digest::MD5->new
As soon as the new method is called the system dies with a message about 'Carp/Heavy.pm'. I am using the Indigostar perl2exe compiler on FreeBSD-stable. Any ideas on how to bypass this issue are greatly welcomed. Thanks. TV Joe

Replies are listed 'Best First'.
Re: Compiling Digest::MD5 looks for Digest/Perl/MD5?
by iburrell (Chaplain) on Mar 11, 2004 at 23:09 UTC
    Does your script use Digest::MD5? Or does perl2exe require it? What error do you get when installing Digest::MD5 with CPAN? If you don't tell us what the problem is, we can't help you with it.

    Digest::MD5 is a binary extension so it can be tough to compile. There is Digest::MD5::Perl which is a pure Perl but much slower replacement for Digest::MD5.

Re: Compiling Digest::MD5 looks for Digest/Perl/MD5?
by iburrell (Chaplain) on Mar 11, 2004 at 23:26 UTC
    I did some investigation of perl2exe. perl2exe seems to include its own Perl interpreter and libraries. The recent versions of perl2exe should include Digest::MD5 since they are based on 5.8 and Digest::MD5 was moved into core.

    If application is running under the Perl interpreter and using Digest::MD5, then Digest::MD5 is installed and working with the normal Perl interpreter. Is the error happening when building the executable with perl2exe? Or when running the executable? The former implies that something is wrong with the perl2exe install. The later implies that something is wrong with the executable. A good possibility is that perl2exe did not detect that Digest::MD5 was needed and did not include it.