perlperl-modulewww-mechanize-firefox

How do I install the Perl module WWW-Mechanize-Firefox?


Can you tell me where to find a guide on how to install a perl module?

I am trying to install the perl module: http://metacpan.org/pod/WWW::Mechanize::Firefox::Installation

I am stuck at step 7. I am not sure where the problem lays exactly, although I can get mozrepl to appear under tools. All I know is that when I run use WWW::Mechanize::Firefox; I get the following type of result:

Cannot locate www/mechanize/firefox.pmin @INC<@INC contain: C:/Perl/site/lib C:/Perl/lib

In the directory in which I have perl, if I type ppm install WWW-Mechanize-Firefox I get

"ppm install filed: Can't find any package that provide WWW-Mechanize-Firefox"

I use Windows XP.

I would appreciate any help. Thank you!


Solution

  • Based on this error:

    Cannot locate www/mechanize/firefox.pmin @INC<@INC contain: C:/Perl/site/lib C:/Perl/lib

    You need to install the module.

    If you are using Strawberry Perl for instance, you should be able to simply:

    cpan WWW::Mechanize::Firefox

    I believe ActiveState supports the above, as well as ppm install WWW::Mechanize::Firefox

    EDIT: ActiveState's Instructions

    EDIT:

    During the install, some of the tests failed. I then went ahead and followed the steps you linked to. At that point I went back and ran the tests using:

    cpan -t WWW::Mechanize::Firefox

    The tests open and close various windows in FF.