【发布时间】:2016-06-04 19:01:19
【问题描述】:
我正在尝试使用 Mechanize Firefox 登录到具有 Javascript 登录的网站。该程序在 Ubuntu 上运行良好,但在 Windows 上运行时出现以下错误。
Can't locate MozRepl.pm in @INC (you may need to install the MozRepl module) (@I
NC contains: C:/Perl/site/lib C:/Perl/lib .) at login-firefox.pl line 3.
BEGIN failed--compilation aborted at login-firefox.pl line 3.
我在 Windows 7 64 位上运行该程序,并使用 Active Perl。
我已经使用cpan安装了以下模块并运行了Mechanize Firefox的测试,结果是成功的。
- MozRepl
- MozRepl::RemoteObject
- WWW::Mechanize::Firefox
【问题讨论】:
-
它们是否安装在
@INC目录之一中?如果没有,您需要将PERL5LIB设置为合适的值。 -
嗨@triplee 我已经在计算机的环境变量中添加了PERL5LIB
标签: windows perl activeperl www-mechanize-firefox mozrepl