Perl – Why can’t DynaLoader.pm load SSleay.dll for Net::SSLeay and Crypt::SSLeay

perl

I have Perl v5.10. I am trying to install Net::SSLeay 1.30 and Crypt::SSLeay 0.57.
I have already installed OpenSSL 0.9.8e.

For Net::SSLeay 1.30 I followed these steps:

perl Makefile.PL -windows C:\openssl
nmake
nmake test  -- test fails
nmake install

perl test.pl

but I got an fatal error as:

D:\perl\Net_SSLeay.pm-1.30>perl -w test.pl
1..20
Can't load 'D:/perl/site/lib/auto/Net/SSLeay/SSLeay.dll' for module Net::SSLeay: load_file:The specified module could not be found at D:/perl/lib/DynaLoader.pm line 203.
 at test.pl line 25
Compilation failed in require at test.pl line 25.
BEGIN failed--compilation aborted at test.pl line 25.

I got the same results for Crypt::SSLeay 0.57.

Best Answer

Randy Kobes has an answer for this on the Perl Win32 mailing list. Does your PATH environment variable contain the directory that contains libeay32.dll or ssleay32.dll?

There are many other answers that you can find in Google too. In cases like these, I take the whole error message and shove it into the Google search bar. I start cutting out parts of the error message, such as the specific paths, until I get some search results. This almost always works for me since I'm rarely the first person to have a problem.

Related Topic