简体   繁体   English

在@INC中找不到MozRepl.pm(您可能需要安装MozRepl模块)

[英]Can't locate MozRepl.pm in @INC (you may need to install the MozRepl module)

I am trying to logon to a website which has Javascript Login using Mechanize Firefox. 我正在尝试使用Mechanize Firefox登录到具有Javascript登录的网站。 The program works fine on Ubuntu, but when I run on windows I am getting the following error. 该程序在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.

I am running the program on Windows 7 64 bit, and using Active Perl. 我在Windows 7 64位系统上运行该程序,并使用Active Perl。

I have installed the following modules using cpan & Have run the tests of Mechanize Firefox, the results were successful. 我使用cpan安装了以下模块,并运行了Mechanize Firefox的测试,结果成功。

  • MozRepl MozRepl
  • MozRepl::RemoteObject MozRepl :: RemoteObject
  • WWW::Mechanize::Firefox WWW :: Mechanize :: Firefox

I was able to tackle the issue!!! 我能够解决这个问题!!!

If you are installing modules via Command Prompt, Run the Command Prompt as Administrator. 如果要通过命令提示符安装模块,请以管理员身份运行命令提示符。

If you are installing modules via PPM, Open PPM.bat as Administrator. 如果要通过PPM安装模块,请以管理员身份打开PPM.bat。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM