【发布时间】:2020-12-09 22:21:55
【问题描述】:
我尝试在终端中运行我的 perl 代码,但出现此错误:
Can't locate LWP/Protocol/https.pm in @INC (you may need to install the LWP::Protocol::https module) (@INC contains: /Users/wobot/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/darwin-2level /Users/wobot/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0 /Users/wobot/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/darwin-2level /Users/wobot/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0) at projet.pl line 23.
我通过 cpan 安装了 LWP :: Protocol 模块,但问题仍然存在。 如何解决?
【问题讨论】:
-
我安装了 LWP :: Protocol 模块 - LWP::Protocol 和 LWP::Protocol::https 是两个独立的模块。