Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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
[Corion]: But maybe there is some other Unicode string that will be true but have a zero width
[hippo]: For explanation, I've seen this construct in someone else's code (no names, no pack drill) and couldn't think of a situation to trigger it.
[Corion]: You'll have to look somewhere esoteric for that. Maybe some tied variable or special dualvar can also trigger that. But it's certainly not a common occurrence
[Corion]: And on 5.20, the following also outputs no find:perl -wle 'for my $x ("\x{2000}".."\ x{1fffff}") { if( $x && ! length $x ) { warn qq(<$x>); warn length $x; die } }'
[Corion]: (this time on Unix)
[hippo]: Understood. I'll have to go through the code and see if it's doing anything fancy with ties, dual-vars or non-scalars. In the end, it's probably a bug though.
[Corion]: Aaah - you should be able to do this with overload, but I would hit somebody really hard if they constructed objects that are true but the empty string, and you not knowing about the domain knowledge where this makes sense

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (14)
As of 2017-07-27 13:34 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (413 votes). Check out past polls.