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

I'm getting this error, yet Digest\MD5.pm exists at \xpsp2\tools\x86\perl\site\lib\Digest\MD5.pm.

My use statement looks like this:

use Digest::MD5;

Can't locate loadable object for module Digest::MD5 in @INC (@INC contains: f:\xpsp2\tools f:\xpsp2\tools\PostBuildScripts f: \xpsp2\tools\sp f:\xpsp2\tools\PostBuildScripts f:\xpsp2\tools f:\xpsp2\tools f:\xpsp2\tools f:\xpsp2\tools\PostBuildScripts f:\xpsp2\tools\sp f:\xpsp2\tools\x86\perl\site\lib f:\xpsp2\tools\x86\perl\lib f:/xpsp2/tools/x86/perl/lib f:/xpsp2/tools/x86/perl/site/lib .) at f:\xpsp2\tools\sp\PublishGoldFiles.cmd line 24

THanks for the help
  • Comment on Can locate loadable module even though it's in the INC path

Replies are listed 'Best First'.
A module is not a its loadable "object"
by PodMaster (Abbot) on May 28, 2004 at 09:32 UTC
    Compare this error message to yours
    C:\>perl -MModule::Which::Does::NOT::EXIST -e 1 Can't locate Module/Which/Does/NOT/EXIST.pm in @INC (@INC contains: C: +/perl/lib C:/perl/site/lib .). BEGIN failed--compilation aborted. C:\>
    You should notice the words "loadable object" in your error message.

    Basically you're missing MD5.dll (the loadable object) because you did not install your module correctly. Read A guide to install modules to learn how to properly install modules.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Can locate loadable module even though it's in the INC path
by Happy-the-monk (Canon) on May 28, 2004 at 09:24 UTC

    Maybe the module wasn't installed properly. How did you install it?