I want to install Net::SSLeay and Net::SSH2. When I type: cpan> install Net::SSLeay I got error after downloading finished:

......downloading something I didn't print out all..... Net-SSLeay-1.52/examples/server_key.pem

Net-SSLeay-1.52/examples/ephemeral.pl

Net-SSLeay-1.52/examples/passwd-cb.pl

Net-SSLeay-1.52/examples/tcpcat.pl

Net-SSLeay-1.52/examples/sslcat.pl

Net-SSLeay-1.52/examples/bio.pl

Net-SSLeay-1.52/examples/cli-cert.pl

Net-SSLeay-1.52/examples/ssl-inetd-serv.pl

Net-SSLeay-1.52/examples/callback.pl

Net-SSLeay-1.52/examples/get_page_cert.pl

Net-SSLeay-1.52/examples/get_page.pl

Net-SSLeay-1.52/examples/tcpecho.pl

Net-SSLeay-1.52/examples/x509_cert_details.pl

Net-SSLeay-1.52/examples/bulk.pl

Net-SSLeay-1.52/examples/req.conf

Net-SSLeay-1.52/examples/sslecho.pl

Net-SSLeay-1.52/examples/makecert.pl

Net-SSLeay-1.52/examples/get_authenticated_page.pl

Net-SSLeay-1.52/examples/ssl_diff.pl

Net-SSLeay-1.52/examples/minicli.pl

Net-SSLeay-1.52/examples/stdio_bulk.pl

CPAN.pm: Going to build M/MI/MIKEM/Net-SSLeay-1.52.tar.gz

Set up gcc environment - 3.4.5 (mingw-vista special r3)

Checking if your kit is complete...

Looks good

Warning: Guessing NAME Net-SSLeay-1.52-ZteTKN from current directory name.

Note (probably harmless): No library found for -lssl *** Could not find OpenSSL

If it's already installed, please set the OPENSSL_PREFIX environment

variable accordingly. If it isn't installed yet, get the latest version

from http://www.openssl.org/.

No 'Makefile' created MIKEM/Net-SSLeay-1.52.tar.gz

C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK

Running make test Make had some problems, won't test

Running make install Make had some problems, won't install

Failed during this command:

MIKEM/Net-SSLeay-1.52.tar.gz : writemakefile NO -- No 'Makefile' created

I encountered this error on two different machines, one Win7, one Win2k3 64bit. Perl version installed is 32bit 5.12 active perl.

I got this message on two machines: one for win7, one for win2k3 64bit, both installed 32bit perl. It seems very easy to reproduce. I went to http://www.openssl.org/ as mentioned to download openssl, but there're only tar files available, after unpacked using 7zip, only unix like makefiles, seems not for windows.

Then I download from another website a windows64 version of OpenSSL. It only comprise an exe file and some libs, very small. I set its path(ie. exe file path) to OPENSSL_PREFIX env as the CPAN error message mentioned and close the cmd.exe, reopen and repeat the CPAN install command, but the error still there....

why Net::SSLeay so hard to install?

Thank a lot for any help!


In reply to can't install Net::SSLeay by anaconda_wly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.