Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
"be consistent"
 
PerlMonks  

Installing module LWP::Protocol::https on Solaris Sparc v10

by rudds_perl_habit (Novice)
on Jan 30, 2014 at 18:58 UTC ( #1072713=perlquestion: print w/ replies, xml ) Need Help??
rudds_perl_habit has asked for the wisdom of the Perl Monks concerning the following question:

Downloaded and built Perl 5.14.2 on Solaris SPARC v10 system. Trying to install the REST::Client module, which depends on LWP::Protocol::https. This LWP::Protocol::https module fails to install with these error messages:

Installing LWP::Protocol::https (6.04) Running [/usr/local/Perl-5.14/bin/perl /usr/local/Perl-5.14/bin/cpanp- +run-perl /home/hardesty/.cpanplus/5.14.2/build/LWP-Protocol-https-6.0 +4/Makefile.PL]... Writing Makefile for LWP::Protocol::https Writing MYMETA.yml Running [/usr/ccs/bin/make test]... PERL_DL_NONLAZY=1 /usr/local/Perl-5.14/bin/perl "-MExtUtils::Command:: +MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Failed test at t/apache.t line 15. # Failed test at t/apache.t line 16. # 'Can't connect to www.apache.org:443 (certificate +verify failed) # # LWP::Protocol::https::Socket: SSL connect attempt failed with unknow +n error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certi +ficate verify failed at /usr/local/Perl-5.14/lib/perl5/site_perl/5.14 +.2/LWP/Protocol/http.pm line 51. # ' # doesn't match '(?^:Apache Software Foundation)' # Looks like you failed 2 tests of 4. t/apache.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/4 subtests Test Summary Report ------------------- t/apache.t (Wstat: 512 Tests: 4 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=4, 3 wallclock secs ( 0.12 usr 0.06 sys + 0.94 cusr + 0.18 csys = 1.30 CPU) Result: FAIL Failed 1/1 test programs. 2/4 subtests failed. *** Error code 2 make: Fatal error: Command failed for target `test_dynamic' [ERROR] MAKE TEST failed: PERL_DL_NONLAZY=1 /usr/local/Perl-5.14/bin/p +erl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib +/arch')" t/*.t # Failed test at t/apache.t line 15. # Failed test at t/apache.t line 16. # 'Can't connect to www.apache.org:443 (certificate +verify failed) # # LWP::Protocol::https::Socket: SSL connect attempt failed with unknow +n error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certi +ficate verify failed at /usr/local/Perl-5.14/lib/perl5/site_perl/5.14 +.2/LWP/Protocol/http.pm line 51. # ' # doesn't match '(?^:Apache Software Foundation)' # Looks like you failed 2 tests of 4. t/apache.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/4 subtests Test Summary Report ------------------- t/apache.t (Wstat: 512 Tests: 4 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=4, 3 wallclock secs ( 0.12 usr 0.06 sys + 0.94 cusr + 0.18 csys = 1.30 CPU) Result: FAIL Failed 1/1 test programs. 2/4 subtests failed. *** Error code 2 make: Fatal error: Command failed for target `test_dynamic' The tests for 'LWP::Protocol::https' failed. Would you like me to proc +eed anyway or should we abort?

I can ping www.apache.org, and I have network connectivity (used cpanp to download the module in the first place). Any ideas on what could be causing the tests to fail? Incidently, I had a Solaris x86 v10 system that installed fine.

Comment on Installing module LWP::Protocol::https on Solaris Sparc v10
Download Code
Re: Installing module LWP::Protocol::https on Solaris Sparc v10
by runrig (Abbot) on Jan 30, 2014 at 19:24 UTC
    See Now you need LWP::Protocol::https. One thing you can do is to set env variable PERL_LWP_SSL_VERIFY_HOSTNAMES to 0. Are you going through a proxy? It might be messing with the cert.

      I tried setting that variable before running the test, but it didn't make a difference. I can run the test in the perl debugger

      perl -d t/apache.t

      and in stepping through the tests, when it returns from simple_request routine, it has this as the return value:

      DB<19> x $res 0 HTTP::Response=HASH(0xcebce8) '_content' => 'LWP will support https URLs if the LWP::Protocol::ht +tps module is installed. ' '_headers' => HTTP::Headers=HASH(0xcf4e40) '::std_case' => HASH(0xcebc58) 'client-date' => 'Client-Date' 'client-warning' => 'Client-Warning' 'client-date' => 'Thu, 30 Jan 2014 20:57:35 GMT' 'client-warning' => 'Internal response' 'content-type' => 'text/plain' '_msg' => 'Protocol scheme \'https\' is not supported (LWP::Protoco +l::https not installed)' '_rc' => 501 '_request' => HTTP::Request=HASH(0xa1e5f8) '_content' => '' '_headers' => HTTP::Headers=HASH(0x8e6d18) 'user-agent' => 'libwww-perl/6.05' '_method' => 'GET' '_uri' => URI::https=SCALAR(0x8f8230) -> 'https://www.apache.org'

      Which seems really strange to me. the _msg string says that https is not supported because LWP::Protocol::https is not installed. But that is the module I am trying to build/test/install!

        You need to add the blib directories to the path. Run:
        prove --debug --blib t/apache.t
Re: Installing module LWP::Protocol::https on Solaris Sparc v10
by marto (Chancellor) on Jan 30, 2014 at 21:32 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-04-17 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls