in reply to Re^4: Screencapture with Perl on Linux
in thread Screencapture with Perl on Linux (SOLVED)

The module Module::Pluggable::Fast isn't available on CPAN.

Module::Pluggable::Fast is, for some reason, not installable through the CPAN shell. You will need to download it separately and extract and install it manually by doing the following dance:

  1. Download Module::Pluggable::Fast
  2. Extract the tarball somewhere convenient
  3. Open a shell in that directory
  4. Type cpan . (including that dot)
  5. Watch the module get installed
  6. Retry installing WWW::Mechanize::Firefox

Replies are listed 'Best First'.
Re^6: Screencapture with Perl on Linux
by sadarax (Sexton) on Dec 06, 2009 at 11:24 UTC
    That helped, but things are not working yet. Doing the manual install for Module::Pluggable::Fast and then retrying the install of WWW::Mechanize::Firefox worked.

    However the script is giving me an error when I do this:

    prompt$ ./screenshot.pl "www.cnn.com" write error: filehandle isn't open at /usr/local/share/perl/5.10.0/Moz +Repl/Client.pm line 186

    Any suggestions?

      No. The script works for me with the following incantations:

      perl -Ilib -w eg\screenshot.pl www.cnn.com
      and
      perl -Ilib -w eg\screenshot.pl http://www.cnn.com

      This works for me using the WWW::Mechanize::Firefox v0.12 from CPAN and the current development release on Github.

        Updated. I installed the MozRepl firefox addon and now it partially works.

        When I try to capture 'www.cnn.com' it work, but when I try to grab a page like 'http://cmcc.deviantart.com/', I get the error:

        MozRepl: Accepted connection. maximum input buffer length exceeded: 1048576 bytes at /usr/local/shar +e/perl/5.10.0/MozRepl/Client.pm line 186 (in cleanup) write error: filehandle isn't open at /usr/local/ +share/perl/5.10.0/MozRepl/Client.pm line 186

        Any suggestions?
      > Any suggestions?

      Did you already install and activate the MozRepl-AddOn in your FF?

      Cheers Rolf

        No, I did not have that installed before, but once I installed it, the script worked. Thanks.