Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-02-2013, 09:17 PM   #1
Registered: Nov 2004
Distribution: CentOS & Ubuntu
Posts: 30

Rep: Reputation: 15
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 <>.
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
-> OK
Unpacking LWP-Protocol-https-6.03.tar.gz
Entering LWP-Protocol-https-6.03
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02)
Configuring LWP-Protocol-https-6.03
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for LWP::Protocol::https
-> OK
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/ blib/lib/LWP/Protocol/
Manifying blib/man3/LWP::Protocol::https.3pm
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 (Network is unreachable)
# LWP::Protocol::https::Socket: connect: Network is unreachable at /usr/local/share/perl5/LWP/Protocol/ line 51.
# '
#     doesn't match '(?-xism: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.01 sys +  0.14 cusr  0.01 csys =  0.18 CPU)
Result: FAIL
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?
Old 04-03-2013, 01:42 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
have you tried
from the command line?
Old 04-03-2013, 01:44 PM   #3
Registered: Nov 2004
Distribution: CentOS & Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Originally Posted by j-ray View Post
have you tried
from the command line?
Here's the result of "wget"

--2013-04-03 04:43:19--
Resolving,, 2001:610:1:80bc:192:87:106:229
Connecting to||:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2013-04-03 04:43:20 ERROR 400: Bad Request.
and cURL:
# curl
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
 Instead use the HTTPS scheme to access this URL, please.<br />
<address>Apache/2.4.4 (Unix) OpenSSL/1.0.0g Server at Port 443</address>
Old 04-03-2013, 11:04 PM   #4
Registered: Nov 2004
Distribution: CentOS & Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
[Solved] Perl LWP::Protocol::https install failed via cpanm

Going to on a browser also causes bad request so I looked at t/apache.t and saw it skips the test when there is no network connection so I just stoped the network and installed from the cpan shell instead of cpanm.

Installed successfully.


cpan, network, perl, ssl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LWP https get 400 error magin Linux - Newbie 1 04-21-2011 09:11 PM
Perl with LWP and NTLM wondergirl Programming 3 05-22-2010 02:32 PM
cpan install LWP failed! modpriest Linux - Software 2 02-25-2010 03:27 AM
Perl install LWP module ; problems ... danran Programming 5 05-03-2007 01:02 PM
Perl's LWP to Python?? chutsu Programming 3 06-05-2006 12:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration