Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Crypt::OpenSSL::Random on Win32 with ActiveState

by syphilis (Archbishop)
on Sep 09, 2014 at 02:16 UTC ( [id://1099931]=note: print w/replies, xml ) Need Help??


in reply to Crypt::OpenSSL::Random on Win32 with ActiveState

Hi,
Assuming ssleay32.lib is located in one of the directories specified in %LIB% (and assuming it can resolve the missing symbols), your only problem is that the Crypt::OpenSSL::Random Makefile.PL does not look for an import library named ssleay32.lib.
Alternatively to the approach already suggested by Anonymous Monk, creating a copy of ssleay32.lib named ssl.lib (in any of the folders specified in %LIB%) should fix that.
Or, in the Makefile.PL you could replace both occurrences of-lssl -lcrypto with -lssleay32 -lssl -lcrypto

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Crypt::OpenSSL::Random on Win32 with ActiveState
by rudds_perl_habit (Novice) on Sep 09, 2014 at 15:51 UTC

    Thanks for the hints Rob and "Anonymous Monk". Using a combination of both, I was able to get it to work.

    I ended up doing:

    1. Install OpenSSL pre-built binaries for Win64
    2. In the OpenSSL Install directory:
    3. copy <ossldir>/libeay32.dll <ossldir>/ssl.dll copy <ossldir>/bin/libeay32.dll <ossldir>/bin/ssl.dll copy <ossldir>/lib/libeay32.lib <ossldir>/bin/ssl.lib
    4. In the Crypt-OpenSSL-Random-0.06 directory run:
    5. perl Makefile.PL LIBDIR="<ossldir>/lib" INCDIR="<ossldir>/include"
    6. ignore these messages, they seem bogus:
    7. -lssl -lcrypto not found. Need to install the openssl devel packages. 'INCDIR' is not a known MakeMaker parameter name. 'LIBDIR' is not a known MakeMaker parameter name.
    8. Build, test and install:
    9. nmake nmake test nmake install

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1099931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found