我是Perl的新手。我在工作中使用它,昨天我遇到了以下错误,该脚本在前一天正常运行。
错误获取 https://www.someurl.com:443 :是
不支持(LWP ::协议:: https未安装)
(注意: www.someurl.com URL。
不是真正
my $res = $mech->get( $url );
的 $ url的实际值甚至都不是 https
它是 http://www.someurl.com
我在So上提到了一些问题。像这样哪些模块可以检查并确认它们全部已安装。还检查了,但我认为它不适用于我,因为我没有将过程分为线程。
有人可以帮我吗?我很乐意发布所需的任何其他信息。
编辑:我正在使用RHEL7服务器,其中Perl 5.16.3。
我有www ::机械化,openssl,io :: socket :: ssl,lwp ::协议:https,net :: ssleay,crypt :: ssleay已安装。
我们没有在脚本工作的最后一次工作和开始失败的时间之间更改任何配置或代码。
I am very new to perl. I am using it at work, and I got the following error yesterday, for a script that was running just fine on the previous day.
Error GETing https://www.someurl.com:443: Protocol scheme 'https' is
not supported (LWP::Protocol::https not installed)
(Note: www.someurl.com is not a real url. I don't want to post the actual url in case it might be an issue.)
I am using the WWW::Mechanize for fetching a webpage and I get the error for the line
my $res = $mech->get( $url );
The actual value of $url is not even https
it is http://www.someurl.com
I referred to the some questions on SO. Like this one Random error with WWW::Mechanize: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) which mentions which modules to check for and confirmed that they are all installed. Also checked Random error with WWW::Mechanize: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) but I don't think it applies to me as I'm not splitting a process into threads.
Can someone please help me out? I will be happy to post any other information required.
Edit: I am using RHEL7 server, with Perl 5.16.3.
I have the WWW::Mechanize, openSSL, IO::Socket::SSL, LWP::Protocol:https, Net::SSLeay, Crypt::SSLeay installed.
We didn't change any configuration or code between the last time the script was working and the time it started failing.
发布评论
评论(1)
安装
LWP ::协议:: HTTPS
。这曾经是LWP的一部分捆绑在一起,但随后被转移到其自身的分布中,因此链接到HTTPS需求并不负担所有LWP的库的复杂性。Install
LWP::Protocol::https
. This used to be bundled as part of LWP, but was then moved to its own distribution so the complexity of linking to the libraries that HTTPS needs doesn't burden all of LWP.