CPAN 模块出现问题
我尝试安装 WWW::Mechanize 模块,
'cpan WWW::Mechanize'
在“use WWW::Mechanize”行上没有收到任何错误,这意味着它找到了文件,但在尝试使用以下命令实例化它时:
$m = WWW::Mechanize->new();
我遇到以下问题:
可以' t 在 @INC 中找到 HTTP/Config.pm(@INC 包含:/Library/Perl/Updates/5.10.0/darwin- thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/ 5.10.0/darwin-thread-multi-2level /系统/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /网络/Library/ Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level / System/Library/Perl/Extras/5.10.0 .) 在 /Library/Perl/5.10.0/LWP/UserAgent.pm 第 746
行。我不太确定发生了什么。我觉得我拥有所有必要的依赖项,但我似乎无法找到这个特定错误的含义。
除了前面提到的行之外,我的脚本是空的,
use strict;
use warnings;
有人遇到过这个吗?
I've tried to install the WWW::Mechanize module with
'cpan WWW::Mechanize'
I get no errors on the 'use WWW::Mechanize' line which means its finding the files, but upon trying to instantiate it with:
$m = WWW::Mechanize->new();
I get the following problem:
Can't locate HTTP/Config.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0/darwin- thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at /Library/Perl/5.10.0/LWP/UserAgent.pm line 746.
I'm not exactly sure what is going on. I feel like I have all the neccessary dependencies, but I can't seem to find what this particular error means.
My script is empty besides the previously mentioned lines and
use strict;
use warnings;
Has anyone run into this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用以下命令(从 shell)安装它:
按照安装过程进行操作,并在需要时回答“Y”。
try installing it with the following command (from the shell):
follow the installation process, and answer 'Y' where needed.