in reply to Re^2: Problem installing Crypt::OpenSSL::Random on Win32
in thread Problem installing Crypt::OpenSSL::Random on Win32

If you downloaded a win32 zip version of openssl (as opposed to installing mingw based version into C:\strawberry\c), you can use
perl Makefile.PL "LIBS=-LC:\openssl\lib\MinGW -llibeay32 -lssleay32" " +INC=-IC:\openssl\include"

Replies are listed 'Best First'.
Re^4: Problem installing Crypt::OpenSSL::Random on Win32
by TedHopp (Novice) on Dec 31, 2009 at 21:03 UTC
    I managed to find the right library in the mingw distribution. Copying libeay32.a to libssl.a did the trick. (I suppose downloading another openssl win32 library would also work, but this was easier. :-)
      Copying libeay32.a to libssl.a did the trick

      I certainly didn't expect Strawberry to go with *that* naming convention for their openssl libraries. I expected they would stick with the more general '-lssl -lcrypto' nomenclature (which is what mingw builds for native win32 in the msys shell) .... but I was wrong. I guess they have good reason(s) for doing that.

      Cheers,
      Rob
      All you had to do was pass Makefile.PL some arguments
        I was looking for a solution that would allow a simple perl -MCPAN -e "install Crypt::OpenSSL::Random". How do you pass args to Makefile.PL through CPAN?

      Thanks for that easy fix.

      Strawberry perl 5.12.3 on Windows 7 has the same problem, and the same fix: copy libeay32.a to libssl.a and the install succeeds.