http://www.perlmonks.org?node_id=664262


in reply to Net::SSLeay and Strawberry Perl

I presume you are using the Shining Light OpenSSL install for Windows?

I have just tried Strawberry with version 0.9.8a and it compiled, built, tested and installed fine.

One thing you have to do though is copy the files from C:\OpenSSL\lib\MinGW to C:\OpenSSL\lib

Hope that helps.

Replies are listed 'Best First'.
Re^2: Net::SSLeay and Strawberry Perl
by xdg (Monsignor) on Jan 25, 2008 at 14:02 UTC

    Could you please add a page on it to http://win32.perl.org if there isn't one already? That seems like a common question.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^2: Net::SSLeay and Strawberry Perl
by luminosity (Initiate) on Jan 25, 2008 at 20:23 UTC
    I tried to do what you said, but the install still fails.

    C:OpenSSL\lib\ now contains libeay32.a, libeay32.def, ssleay32.a, and ssleay32.def. I try to run the install command and get the following:

    Cannot determine perl version info from lib/Net/SSLeay.pm Cannot determine license info from lib/Net/SSLeay.pm *** Found OpenSSL-0.9.8g installed in C:\OpenSSL *** Be sure to use the same compiler and options to compile your OpenS +SL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [y] + y *** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... [Core Features] - Sub::Uplevel ...loaded. (0.18) - Test::Exception ...loaded. (0.26) - Array::Compare ...loaded. (1.14) - Tree::DAG_Node ...loaded. (1.06) - Test::Warn ...loaded. (0.10) - MIME::Base64 ...loaded. (3.07_01) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Writing Makefile for Net::SSLeay cp lib/Net/SSLeay.pm blib\lib\Net\SSLeay.pm AutoSplitting blib\lib\Net\SSLeay.pm (blib\lib\auto\Net\SSLeay) blib\lib\Net\SSLeay.pm: some names are not unique when truncated to 8 +characters ... C:\strawberry\perl\bin\perl.exe "-Iinc" C:\strawberry\perl\lib\ExtUtil +s\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap SSL +eay.xs > S SLeay.xsc && C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Comma +nd -e mv S SLeay.xsc SSLeay.c gcc -c -IC:\strawberry\c\include -s -O2 -DWIN32 -DHAVE_DES_FCRY +PT -DPERL_ IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCR +T_READFIX -s -O2 -DVERSION=\"1.32\" -DXS_VERSION=\"1.32\" "-IC:\strawberr +y\perl\lib \CORE" SSLeay.c
    It then spews a bunch of errors again, and exits with the following:
    dmake.EXE: Error code 129, while making 'SSLeay.o' FLORA/Net-SSLeay-1.32.tar.gz C:\strawberry\c\bin\dmake.EXE -- NOT OK
    Is there some environment variable I need to modify or some other file I need to copy?

    I appreciate the help.

      I notice your gcc -c  -IC:\... line doesn't have the -IC:\OpenSSL\include needed to find OpenSSL's header files. Could that be the problem? Try running:

      C:\> SET INCLUDE_PATH=C:\OpenSSL\Include C:\> cpan install Net::SSLeay
      and see if that changes the error message.
        I just wanted to confirm that this does indeed work. It allowed me to install Net::SSLeay (1.35) successfully using Shining Light openSSL v0.9.8j and strawberry perl 5.10.0.4 (Windows XP SP3) (the OP never responded re. his/her success)