Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

can't install Net::SSLeay

by anaconda_wly (Scribe)
on Jan 31, 2013 at 11:40 UTC ( #1016298=perlquestion: print w/ replies, xml ) Need Help??
anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:

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!

Comment on can't install Net::SSLeay
Re: can't install Net::SSLeay
by marto (Chancellor) on Jan 31, 2013 at 11:50 UTC

    It's important that you read the documentation for the modules (or programs or libraries) you want to use.README says:

    Windows: Supported on 32 and 64 bit platforms See README.Win32 for details

    README.Win32. Super Search for further discussions on this topic. Strawberry Perl ships with this (and many other useful modules) as standard. Consider also the ppm installation route.

    Update: Expanded first sentence, added last sentence.

Re: can't install Net::SSLeay
by vinoth.ree (Parson) on Jan 31, 2013 at 12:01 UTC

    Your error message suggests that you probably have not installed the OpenSSL library/headers or it is in a location not known to perl. Install it with the package manager of your operating system, or compile and install it.

      They're aware that they don't have openssl installed. They said:

      "one Win7, one Win2k3 64bit"

      Neither of these Operating systems have a package manager in the sense that you're thinking of. The openssl release notes include INSTALL.W32/INSTALL.W64 which provide installation instructions.

Re: can't install Net::SSLeay
by syphilis (Canon) on Feb 01, 2013 at 06:15 UTC
    why Net::SSLeay so hard to install?

    As already mentioned, ppm does make it easy. The following should install it for you:
    ppm install http://www.sisyphusion.tk/ppm/Net-SSLeay.ppd --force
    There are perhaps ppm packages for Net::SSLeay available from other locations, too.

    Cheers,
    Rob
Re: can't install Net::SSLeay
by Anonymous Monk on Feb 01, 2013 at 09:59 UTC

    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....

    How did you set OPENSSL_PREFIX, what commands did you use?

    why Net::SSLeay so hard to install?

    It really isn't that hard, even comes detailed directions, you're simply computer challenged

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1016298]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-09-20 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls