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

Net::SSLeay and Strawberry Perl

by luminosity (Initiate)
on Jan 25, 2008 at 05:32 UTC ( #664220=perlquestion: print w/replies, xml ) Need Help??
luminosity has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to get Net::SSLeay installed with Strawberry Perl and running into some issues. First, I have OpenSSL 0.9.8g installed in C:\openssl. I try and run install Net::SSLeay and it grabs all the necessary packages, but bombs during compilation. Here is the program output:
Cannot determine perl version info from lib/Net/ Cannot determine license info from lib/Net/ *** Found OpenSSL-0.9.8g installed in C:\OpenSSL
Then it spews a bunch of errors from SSLeay.c and I get the following:
dmake.EXE Error code 129, while making SSLeay.o
Has anyone tried Net::SSLeay with Strawberry perl and found it to work? Milling around other help forums, I see a lot of comments, but no solutions.

Any help would be appreciated. Can anyone point me to a page that has a step by step process outlined? Or better, explain the process here?


Replies are listed 'Best First'.
Re: Net::SSLeay and Strawberry Perl
by bingos (Vicar) on Jan 25, 2008 at 10:36 UTC

    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.

      Could you please add a page on it to if there isn't one already? That seems like a common question.


      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.

      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/ Cannot determine license info from lib/Net/ *** 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/ blib\lib\Net\ AutoSplitting blib\lib\Net\ (blib\lib\auto\Net\SSLeay) blib\lib\Net\ 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://664220]
Approved by ikegami
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-07-19 12:10 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (407 votes). Check out past polls.