http://www.perlmonks.org?node_id=1054694

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 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)'
# 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 www.apache.org, I get an error
root@bee Protocol# wget www.apache.org:443 --2013-09-18 12:01:24-- 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-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!
Bee

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

Replies are listed 'Best First'.
Re: CPAN: Cannont install LWP::Protocol::https::Socket
by hippo (Bishop) 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 www.apache.org 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:
    wget https://www.apache.org/