in reply to Problem installing Crypt::OpenSSL::Random on Win32

ahmad is quite right. I just wanted to add that the library that needs to be installed is "openssl". (It will give you *both* "-lssl" and "-lcrypto").

Cheers,
Rob
  • Comment on Re: Problem installing Crypt::OpenSSL::Random on Win32

Replies are listed 'Best First'.
Re^2: Problem installing Crypt::OpenSSL::Random on Win32
by TedHopp (Novice) on Dec 31, 2009 at 18:06 UTC
    Strawberry Perl ships with both ssl and crypto libraries, named libssl32.a and libcrypt32.a. I tried copying the libraries to, respectively, libssl.a and libcrypto.a. The warnings about missing libraries went away, but the complaints about the unresolved references didn't. The RAND_* functions appear in openssl/rand.h, which ships with Strawberry, so the functions should be in there somewhere, right? I'm wondering if this is a configuration problem either with Strawberry Perl (v. 5.8.9.3) or (much less likely, I assume) with the CPAN module.
      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"
        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. :-)