||04-02-2013 09:17 PM
Perl LWP::Protocol::https install failed via cpanm
Trying to install LWP::Protocol::https using cpanm but it fails. Here is the build.log:
cpanm (App::cpanminus) 1.6103 on perl 5.010001 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1364929453.16247
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching LWP::Protocol::https on cpanmetadb ...
--> Working on LWP::Protocol::https
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Checking if your kit is complete...
Writing Makefile for LWP::Protocol::https
Finding PREREQ from Makefile ...
Checking if you have Mozilla::CA 20110101 ... Yes (20130114)
Checking if you have IO::Socket::SSL 1.54 ... Yes (1.84)
Checking if you have LWP::UserAgent 6.04 ... Yes (6.05)
Checking if you have Net::HTTPS 6 ... Yes (6.04)
Building and testing LWP-Protocol-https-6.03
cp lib/LWP/Protocol/https.pm blib/lib/LWP/Protocol/https.pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test at t/apache.t line 14.
# Failed test at t/apache.t line 15.
# 'Can't connect to www.apache.org:443 (Network is unreachable)
# LWP::Protocol::https::Socket: connect: Network is unreachable at /usr/local/share/perl5/LWP/Protocol/http.pm line 51.
# doesn't match '(?-xism:Apache Software Foundation)'
# Looks like you failed 2 tests of 2.
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.01 sys + 0.14 cusr 0.01 csys = 0.18 CPU)
Failed 1/1 test programs. 2/2 subtests failed.
make: *** [test_dynamic] Error 2
-> FAIL Installing LWP::Protocol::https failed. See /root/.cpanm/build.log for details.
The networking is fine as I've been downloading and installing packages via yum.
What am I missing here?