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

661 views Asked by At

I am trying to logon to a website which has Javascript Login using Mechanize Firefox. The program works fine on Ubuntu, but when I run on windows I am getting the following error.

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.

I have installed the following modules using cpan & Have run the tests of Mechanize Firefox, the results were successful.

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

There are 1 answers

0
Anoop Pete On

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.