failed: 501 Protocol scheme ‘https’ is not supported (LWP::Protocol::https not installed) と出たら

【PR】
※IT系の記事は当方環境での実施内容となるため実施する場合は自己責任でお願いいたします。

サイトのhttps化が進んでいる昨今、PerlでのWebコンテンツ取得時に

failed: 501 Protocol scheme ‘https’ is not supported (LWP::Protocol::https not installed) と出たら、ライブラリが不足している。対応は以下、

※rootで実行

CPANの場合

perl -MCPAN -e shell
 
install CPAN
reload CPAN
install Crypt::SSLeay
install IO::Socket::SSL
install LWP::Protocol::https
exit

CentOS等、yum対応の場合

yum install perl-Net-SSLeay
yum install perl-Crypt-SSLeay
yum install perl-IO-Socket-SSL

これで出なくなるかと。

Tips

Posted by admin