in reply to Can't install LWP::Protocol::https::Socket

I'm trying to install LWP::Protocol::https::socket without any success

This Can't connect to www.apache.org:443 (Network is unreachable) says you're not connected to the internet, whether network outage or firewall .... lwpcook has info about proxy settings ...

You can install a module with failing test, you either skip the tests, or you force install, or both cpan -f -i -T LWP::Protocol::https

  • Comment on Re: Can't install LWP::Protocol::https::Socket

Replies are listed 'Best First'.
Re^2: Can't install LWP::Protocol::https::Socket
by Dillman (Novice) on Oct 29, 2013 at 13:47 UTC
    It seems the problem presents itself when trying to access secure sites "https" using Perl or cpan. I tried running wget https://www.apache.org and it was successful.
Re^2: Can't install LWP::Protocol::https::Socket
by Dillman (Novice) on Oct 29, 2013 at 13:08 UTC

    I'm connected to the internet and I was able to install other packages without any problems.

        Thanks Marto/anonymous monk,

        I was able to install the module but it seems when I use the module in my Perl script I'm still having errors accessing https sites. I can access https sites using wget and browser.

        Can't connect to www.google.com:443 (Network is unreachable) LWP::Protocol::https::Socket: connect: Network is unreachable at /usr/ +local/share/perl5/LWP/Protocol/http.pm line 51