LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-02-2013, 09:17 PM   #1
dhrumantgoradia
Member
 
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:

Code:
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
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-6.03.tar.gz
-> 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/https.pm blib/lib/LWP/Protocol/https.pm
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 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.
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
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,414

Rep: Reputation: 99
have you tried
wget www.apache.org:443
from the command line?
 
Old 04-03-2013, 01:44 PM   #3
dhrumantgoradia
Member
 
Registered: Nov 2004
Distribution: CentOS & Ubuntu
Posts: 30

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

Code:
--2013-04-03 04:43:19--  http://www.apache.org:443/
Resolving www.apache.org... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229
Connecting to www.apache.org|192.87.106.229|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2013-04-03 04:43:20 ERROR 400: Bad Request.
and cURL:
Code:
# curl www.apache.org:443
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<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 />
</p>
<hr>
<address>Apache/2.4.4 (Unix) OpenSSL/1.0.0g Server at ssldefault.apache.org Port 443</address>
</body></html>
 
Old 04-03-2013, 11:04 PM   #4
dhrumantgoradia
Member
 
Registered: Nov 2004
Distribution: CentOS & Ubuntu
Posts: 30

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

Going to www.apache.org:443 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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 03:51 AM.

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