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

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Installing Crypt::SSLeay still fails so started installing prerequisites individually. Installed:

IO::Socket::SSL, Net::SSLeay, Mozilla::CA

Then went back to Crypt::SSLeay

Heim@Heim-PC ~/.cpan/build/Crypt-SSLeay-0.64-4GqoXH $ perl Makefile.PL The test suite can attempt to connect to public servers to ensure that + the code is working properly. If you are behind a strict firewall or have +no network connectivity, these tests may fail (through no fault of the co +de). Do you want to run the live tests (y/N)? [N] y Checking if your kit is complete... Looks good Warning: prerequisite LWP::Protocol::https 6.02 not found. Note (probably harmless): No library found for -lz Note (probably harmless): No library found for -lssl32 Note (probably harmless): No library found for -lssleay32 Note (probably harmless): No library found for -leay32 Writing Makefile for Crypt::SSLeay Writing MYMETA.yml Heim@Heim-PC ~/.cpan/build/Crypt-SSLeay-0.64-4GqoXH $

Went back to installing prerequisite LWP::Protocol::https. The steps:

perl Makefile.PL make

seemed to be okay but testing gave the following result:

Heim@Heim-PC ~/.cpan/build/LWP-Protocol-https-6.03-szsMUU $ make test PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "te +st_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/apache.t .. 1/2 # Failed test at t/apache.t line 14. # Failed test at t/apache.t line 15. # 'Can't connect to www.apache.org:443 # # ' # doesn't match '(?^:Apache Software Foundation)' # Looks like you failed 2 tests of 2. t/apache.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- t/apache.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=2, 1 wallclock secs ( 0.02 usr 0.03 sys + 0.17 cusr + 0.12 csys = 0.34 CPU) Result: FAIL Failed 1/1 test programs. 2/2 subtests failed. Makefile:783: recipe for target `test_dynamic' failed make: *** [test_dynamic] Error 2

Disabling my firewall made no difference. Any feedback appreciated on steps to take next.

The one test file seems to access"https://www.apache.org" but since I'm trying to install LWP::Protocol::https, how does the test work? :

$ cat apache.t #!perl -w use strict; use Test::More; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); plan skip_all => "Not online" unless $ua->is_online; plan tests => 2; my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.a +pache.org")); ok($res->is_success); like($res->content, qr/Apache Software Foundation/); $res->dump(prefix => "# ");

Thanks, Edward


In reply to Re^8: Install LWP::Protocol::https by edheim
in thread Install LWP::Protocol::https by edheim

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!
  • 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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (14)
    As of 2015-07-07 21:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (93 votes), past polls