Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Error while installing the Net::SSLeay module on windows.

by syphilis (Archbishop)
on Oct 27, 2021 at 14:18 UTC ( [id://11138110]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Error while installing the Net::SSLeay module on windows.
in thread Error while installing the Net::SSLeay module on windows.

You failed to include the closing </code> tag at the end of your post ;-)

The import libraries are not being found.
Actually, they might be 'static' libraries ... anyway, I think they're named 'libssleay32.a' and 'libssl32.a' on my Strawberry Perl installations ... and they need to be locatable, or you'll get those "undefined reference" messages that you're seeing.
Where is libssleay32.a (or libssleay32.dll.a) on your system ?
I recommend setting the LIBRARY_PATH environment variable to the location of that '.a' file, and trying again.

BTW, I happen to have an 'MSWin32-x86-multi-thread' build of Strawberry Perl 5.24.
So I ran cpan -i Net::SSLeay and it installed version 1.90 without any trouble at all (built against OpenSSL 1.0.2h).

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Error while installing the Net::SSLeay module on windows.
by Anonymous Monk on Oct 27, 2021 at 18:44 UTC

    Hi Rob, i tried with upgrade openssl to 1.1.1l but having the same issue while installing Net::SSLeay.

    OpenSSL> version OpenSSL 1.1.1l 24 Aug 2021

      i tried with upgrade openssl to 1.1.1l but having the same issue while installing Net::SSLeay

      Your immediate problem has nothing to do with the version of OpenSSL being used.
      The problem is that the Net::SSLeay-1.90 build is not linking to the OpenSSL libraries that can resolve those undefined references you're seeing.
      On closer inspection, I find that my Strawberry Perl build of Net::SSLeay-1.90 links to OpenSSL libraries named 'libeay32.a', 'libssl32.a' and 'libcrypt32.a'.
      Your unfound libraries (probably with the same names as mine, unless they've been built using a Microsoft Compiler) should be located somewhere within your OpenSSL installation.
      For me, they were all in a folder named 'lib' - though libcrypt32.a was in a different 'lib' folder to the other 2.
      Set the LIBRARY_PATH environment variable to the full path to that/those location(s). You separate multiple locations with ';' - same as with the PATH environment variable.

      All Net::SSLeay builds begin with the perl Makefile.PL command.
      Could you post the output you get for that part of the build process.
      For me, I see:
      C:\sisyphusion\Net-SSLeay-1.90>perl Makefile.PL Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] WARNING: can't open config file: /z/extlib/_2016Q2_/ssl/openssl.cnf *** Found OpenSSL-1.0.2h installed in C:\_32\strawberry5.24.0_32int\pe +rl\..\c *** 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. Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Net::SSLeay Writing MYMETA.yml and MYMETA.json
      Cheers,
      Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found