Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

CPAN: Cannont install LWP::Protocol::https::Socket

by WorkerBee (Novice)
on Sep 18, 2013 at 16:13 UTC ( #1054694=perlquestion: print w/replies, xml ) Need Help??
WorkerBee has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am in need of your help!
I am attempting to install LWP::Protocol::https::Socket
I have attempted to install this both via CPAN and using the .gz distro. (make Malefile.PL; make install)

I am getting the folloing error

# Failed test at t/apache.t line 16.
# '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)'
# Failed test at t/apache.t line 23.
# Looks like you failed 3 tests of 4.
t/apache.t .. Dubious, test returned 3 (wstat 768, 0x300)

When I attempt to connect to, I get an error
root@bee Protocol# wget --2013-09-18 12:01:24-- Resolving,, 2001:610:1:80bc:192:87:106:229
Connecting to||:443... connected.
HTTP request sent, awaiting response... 400 Bad Request 2013-09-18 12:01:24 ERROR 400: Bad Request.

I am at a loss, I have searched and searched, and I cannot find a way to ge this module installed

CentOS 6.4
perl 5.10

Thanks in advance!

  • Comment on CPAN: Cannont install LWP::Protocol::https::Socket

Replies are listed 'Best First'.
Re: CPAN: Cannont install LWP::Protocol::https::Socket
by hippo (Abbot) on Sep 18, 2013 at 16:54 UTC

    Your wget test fails because you are sending an HTTP request to an HTTPS server. If you send an HTTPS request instead you may have more success.

    It might also be significant whether you are attempting to connect over IPv4 or IPv6.

      This is resolved. Thank you! Bee

        If your box is running IPv4 and not IPv6 and you then attempt to connect from it over IPv6, that is when you see errors like "Network is unreachable". That and the fact that has an IPv6 address (as well as IPv4) suggests that this could be a possible cause of the test failure.

        If you have indeed resolved this, you could help matters for us all by editing the OP to:
        • Update the title - to include the string 'RESOLVED' or similar and possibly ...
        • Identify the resolution
        Just my 10 penn'orth
        A user level that continues to overstate my experience :-))
Re: CPAN: Cannont install LWP::Protocol::https::Socket
by vsespb (Chaplain) on Sep 18, 2013 at 17:10 UTC
    There is an error message "network unreachable". Probably it's really unreachable. Try test it with wget that way:

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1054694]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-12-14 23:38 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (414 votes). Check out past polls.