WWW::Mechanize::Firefox - how to render the output

hello dear friends good evening

i have a list of 2,500 URLs, one on each line, saved in a file. Then i want a script - see it below - to open the file, read a line, then retrieve the website?
So far so good, well i think i try something like this



use WWW::Mechanize::Firefox;    

my $mech = WWW::Mechanize::Firefox->new();     

open(INPUT, "urls.txt") or die "Can't open file: $!";     

while (<INPUT>) {       chomp;     

$mech->get($_);      

my $png = $mech->content_as_png();     }    

close(INPUT);    

exit;

Weil i assume that this returns the given tab or the current page rendered as PNG image. All parameters are optional. $tab defaults to the current tab. If the coordinates are given, that rectangle will be cut out. The coordinates should be a hash with the four usual entries, left,top,width,height.
hmmm - this is specific to WWW::Mechanize::Firefox.

greetings fellow perl developer … :stuck_out_tongue:

I don’t actually understand your question or…understand what you want to do…

could you be more specific?

greetings harvested

first of all - i have listed some troubles which i have had with the first trials on a opensuse 11.4 - no i **go ahead- **i will install opensuse 12.1 at the weekend - (/a fresh installation) afterwards i will add al the perl-stuff and all the necessary prerequesites that i need to do the job again. i will come back and report all my findings -

Here i will inform you what is the outline - what is wanted and what i have done so far;: **
Well i try to run this little programme on a linux box. What is wanted: - i start with
the beginning: ** i tried to run on linux opensuse 11.4.


#!/usr/bin/perl

    use WWW::Mechanize::Firefox;
    my $mech = WWW::Mechanize::Firefox->new();

    open(INPUT, "urls.txt") or die "Can't open file: $!";

    while (<INPUT>) {
      chomp;
      $mech->get($_);
      my $png = $mech->content_as_png();
    }
    close(INPUT);
    exit; 

I have a list of URLS - more than 1000 URLS - so it might be a problem if I get the results in an unsorted way. I have a list of 3000 URLs, one on each line, saved in a file. I want the script above to open the file, read a line, then retrieve the website! The URLS are stored something like this:



    Filename: urls.txt
    ------------------
    www.google.com
    www.cnn.com
    www.msnbc.com
    news.bbc.co.uk
    www.bing.com
    www.yahoo.com 


Question: How can I write the script so that the thumbnail-images are stored with certain names - e.g., with the domain names. Otherwise the results would be a whole mess. I need to identify the thumbnails based on the URLS. Is this possible?

**Update: **Hmmm well i guess that i have a serious issues with the installation of MECHA::FireFox Hmm - i should have to work through the steps in WWW::Mechanize::Firefox::Troubleshooting! But believe me - this is pretty silly hard to do: Especially the “Installation” section seems particularly applicable to my situation here!

There might some terrible things -happened. What should i do now!!?

prerequisites: If i run the script i get fatal errors -

linux-vi17:/home/martin/bin # perl get_shots.pl Failed to connect to , problem connecting to "localhost", port 4242: connecting to the denied at /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm line 144


but wait - i also have installed the mozlRepl …

K
Running make test
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-load.t t/10-plugin-repl-enter.t t/11-plugin-repl-search.t t/12-plugin-repl-inspect.t t/13-plugin-repl-load.t t/14-plugin-repl-rename.t t/15-plugin-repl-print.t t/16-plugin-repl-home.t t/17-plugin-repl-back.t t/18-plugin-repl-util-help_url_for.t t/19-plugin-repl-util-doc_for.t t/20-plugin-json.t t/pod-coverage.t t/pod.t
t/00-load.t ........................... 1/3 # Testing MozRepl 0.06
t/00-load.t ........................... ok   
t/10-plugin-repl-enter.t .............. [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/10-plugin-repl-enter.t .............. ok   
t/11-plugin-repl-search.t ............. [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/11-plugin-repl-search.t ............. ok   
t/12-plugin-repl-inspect.t ............ [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/12-plugin-repl-inspect.t ............ ok   
t/13-plugin-repl-load.t ............... [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/13-plugin-repl-load.t ............... ok   
t/14-plugin-repl-rename.t ............. [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/14-plugin-repl-rename.t ............. ok   
t/15-plugin-repl-print.t .............. [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/15-plugin-repl-print.t .............. ok   
t/16-plugin-repl-home.t ............... [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/16-plugin-repl-home.t ............... ok   
t/17-plugin-repl-back.t ............... [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/17-plugin-repl-back.t ............... ok   
t/18-plugin-repl-util-help_url_for.t .. [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/18-plugin-repl-util-help_url_for.t .. ok   
t/19-plugin-repl-util-doc_for.t ....... [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/19-plugin-repl-util-doc_for.t ....... ok   
t/20-plugin-json.t .................... [DEBUG] MozRepl logging enabled
[DEBUG] 
---- Client arguments ----
.----------------------+------------------------------------------.
| client_arg_name      | client_arg_value                         |
+----------------------+------------------------------------------+
| host                 | localhost                                |
| port                 | 4242                                     |
| timeout              | 10                                       |
| extra_client_args    | {}                                       |
'----------------------+------------------------------------------'
t/20-plugin-json.t .................... ok   
t/pod-coverage.t ...................... skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/pod.t ............................... skipped: Test::Pod 1.14 required for testing POD
All tests successful.
Files=14, Tests=42,  7 wallclock secs ( 0.14 usr  0.08 sys +  2.98 cusr  0.36 csys =  3.56 CPU)
Result: PASS
  ZIGOROU/MozRepl-0.06.tar.gz
  make test -- OK
Running make install
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::Accessor::Fast,0,Module::Pluggable::Fast,0,Template,0,Template::Provider::FromDATA,0,UNIVERSAL::require,0
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Log.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Client.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Util.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Base.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/JSON.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Search.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Load.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Rename.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Inspect.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Home.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Enter.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Print.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Back.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/DocFor.pm
Installing /usr/lib/perl5/site_perl/5.12.3/MozRepl/Plugin/Repl/Util/HelpUrlFor.pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::DocFor.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Print.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Inspect.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Back.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Rename.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Util::HelpUrlFor.3pm
Installing /usr/share/man/man3/MozRepl::Client.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::JSON.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Base.3pm
Installing /usr/share/man/man3/MozRepl::Log.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Load.3pm
Installing /usr/share/man/man3/MozRepl::Util.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Home.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Search.3pm
Installing /usr/share/man/man3/MozRepl::Plugin::Repl::Enter.3pm
Installing /usr/share/man/man3/MozRepl.3pm
Appending installation info to /usr/lib/perl5/5.12.3/i586-linux-thread-multi/perllocal.pod
  ZIGOROU/MozRepl-0.06.tar.gz
  make install  -- OK

Presumably i haven’t turned mozlRepl on. It doesn’t listen all the time.

**anyway - **i will install opensuse 12.1 at the weekend - (/a fresh installation) afterwards i will
add al the perl-stuff and all the necessary prerequesites that i need to do the job again.

i will come back and report all my findings -

stay tuned!

k dilbertone…
update to 12.1 this weekend…
I’ll also try to do it this weekend and hopefully come up with a solution…
from what it looks like …it’s a pretty simple thing though…

hello dear harvested

many thx for the message. I do the update at the weekend - and afterwards i come back and report all my findings
look forward to discuss all the things with you
greetings dilbertone :wink:

hey dilbertone,

so…i’ve finished your script man :slight_smile:
I too had the same problem with mozRepl but follow the first 3-4 steps from this link and you’ll be fine
WWW::Mechanize::Firefox::Troubleshooting - search.cpan.org

ok…I’ve tested my script but only on your first 6 links that you showed here and I’ve removed the first 2 lines…basically in my urls.txt files there are only urls…

so here’s the code… :slight_smile:



#!/usr/bin/perl

use strict;
use warnings;
use WWW::Mechanize::Firefox;

my $mech = new WWW::Mechanize::Firefox();

open(INPUT, "<urls.txt") or die $!;

while (<INPUT>) {
        chomp;
        print "$_
";
        $mech->get($_);
        my $png = $mech->content_as_png();
        my $name = "$_";
        $name =~s/^www\.//;
        $name .= ".png";
        open(OUTPUT, ">$name");
        print OUTPUT $png;
        sleep (5);
}

as you see…I’ve assigned the $_ variable to a scalar,
did a regexp there with a substitute to remove the beggining “www.”
then I concatenated “.png” to the file name
after that I opened a new file handler in write mode, to write to that specific file name
and then I’ve “printed” the output of the $png to the filehandler
at the end, I’ve let it sleep for 5 seconds because it needs some time to download the image as png…
it worked ok for my urls.txt files wich contains only 6 links

for your huge file…you’ll need a lot of patience :wink:

play around with it and tell us how it works…
cheers :slight_smile:

hello dear harvested.

many many thanks for the reply - great to hear from you - i am in the mids of installing os 12.1 and all the perl stuff.

hope that i get the trick **with mozRepl ** and can go round the issues i have had (on a opensuse-installation 11.4 [and yes - i guess that i have made some mistakes - and the errors are not rooted in the OpenSuse 11.4. So i have to be aware of some issues that may arise - also on the opensuse 12.1 - many thanks for makin me aware of this,.

i will read the [b]man-pages on the cpan carefully

so…i’ve finished your script man
I too had the same problem with mozRepl but follow the first 3-4 steps from this link and you’ll be fine
WWW::Mechanize::Firefox::Troubleshooting - search.cpan.org

Many many thanks for the script - i cannot wait to test it here. It looks impressive!
And the sleep is quite very interesting detail!! :wink: great ideas!

i come back later the weekend - and report all what i get to know here - on OpenSuse 12.1

have a great day!

many many greetings :slight_smile:

Hello dear harvested

again - many many thanks for all you did!!!

did you install the mozrepl via command-line

**zypper in **

I too had the same problem with mozRepl but follow the first 3-4 steps from this link and you'll be fine
WWW::Mechanize::Firefox::Troubleshooting - search.cpan.org

How did you install it!?
´Did you add it like a Mozilla - Plugin.

i look forward to hear from you

  • btw - you can mail me - i ve send you the mail-adress via pm…
    if you like —
    If i get Mozrepl up and running i can test your great programme!!

greetings
dilbert

Hello dear harvested,

again me - again a short message still try to figure out how i can get mozrepl installed on the openSuse Linux-12.1:

Well harvested - i forgot to mention that i only need to have the images as small thumbnails - so we do not have to have a very very large files…

i only need to grab a thumbnail screenshot of them. How do I do that?


  my $png = $mech->content_as_png();

The line returns the given tab or the current page rendered as PNG image.

as the documentation states:

All parameters are optional. $tab defaults to the current tab. If the coordinates are given, that rectangle will be cut out. The coordinates should be a hash with the four usual entries, left,top,width,height. This is specific to WWW::Mechanize::Firefox.

Well harvested does that have any impact on our code - can we make the code somewhat more specifical to our needs.
Note:the files i store are a bit smaller - if we limit them after fetching from the web !? aren ´t they!?

BTW; Currently, the data transfer between Firefox and Perl is done Base64-encoded, isn t it. Well It would be beneficial to find what 's necessary to make JSON handle all the binary data more gracefully what do you think. Love to hear from you

Now i try to install mozrepl - if you or anybody has got some tipps on that. should i run

a. zypper in .or
b. get it as a firefox plugin

greetings

hey dilbertone,

i got mozRpl as an add on in Firefox…

as i understand from the perldoc that option with the coordinates, it is not the resize of the whole page it’s just a rectangle cut out of it…
if you need just thumbnails you need to search cpan for some module that scales down the $png

yes, as I understand from the documentation the data transfer is done Base64-encoded…i don’t really know…what you want exactly …to use json for?

cheers :slight_smile:

hello dear harvested

many many thanks for the reply - was away from keyboard for several hours - i also will take Mozrepl ass a Add-on in FF.

Well the mechanize::firefox module does not concern itself with resizing images.
But that is no problem - i will check the various image-[resizing]-modules that are on CPAN, like Imager or some alike.

many many greetings and have a great day

greetings from good old europe!

hello again

well i have tried to install mechanite:: firefox and believe it or not…
the machine also wantet to have
json
and yes

i had this in the command line - what is the deal with this…

this goes a bit over my head

1





t/50-rt65615.t .................... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/50-tick.t ....................... Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl .) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
Compilation failed in require at t/50-tick.t line 4.
BEGIN failed--compilation aborted at t/50-tick.t line 4.
t/50-tick.t ....................... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/51-click_button.t ............... Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl .) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
Compilation failed in require at t/51-click_button.t line 7.
BEGIN failed--compilation aborted at t/51-click_button.t line 7.
t/51-click_button.t ............... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 


and yes i also got the following one… here



#     doesn't match '(?^:examples/urlbar.pl syntax OK)'

#   Failed test 'examples/bcat.pl compiles'
#   at t/99-examples.t line 13.
#                   'Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl .) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
# BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
# Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
# BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
# Compilation failed in require at examples/bcat.pl line 3.
# BEGIN failed--compilation aborted at examples/bcat.pl line 3.
# '
#     doesn't match '(?^:examples/bcat.pl syntax OK)'

#   Failed test 'examples/tail-console.pl compiles'
#   at t/99-examples.t line 13.
#                   'Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl .) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
# BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
# Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
# BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
# Compilation failed in require at examples/tail-console.pl line 3.
# BEGIN failed--compilation aborted at examples/tail-console.pl line 3.
# '
#     doesn't match '(?^:examples/tail-console.pl syntax OK)'
# Looks like you failed 13 tests of 14.
t/99-examples.t ................... Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/14 subtests 
t/99-manifest.t ................... ok   
t/99-pod.t ........................ skipped: Test::Pod required for testing POD
t/99-todo.t ....................... ok     
t/99-unix-text.t .................. ok     
t/99-versions.t ................... skipped: File::Slurp needed for testing
t/mechanize/autocheck.t ........... Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
Compilation failed in require at t/mechanize/autocheck.t line 13.
BEGIN failed--compilation aborted at t/mechanize/autocheck.t line 13.
t/mechanize/autocheck.t ........... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/mechanize/content.t ............. Can't locate MozRepl/RemoteObject.pm in @INC (@INC contains: /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/arch /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.14.2 /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2 /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.14.2 /usr/lib/perl5/site_perl .) at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/Firefox/Application.pm line 4.
Compilation failed in require at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
BEGIN failed--compilation aborted at /root/.cpan/build/WWW-Mechanize-Firefox-0.58-psuWYZ/blib/lib/WWW/Mechanize/Firefox.pm line 13.
Compilation failed in require at t/mechanize/content.t line 17.
BEGIN failed--compilation aborted at t/mechanize/content.t line 17.
t/mechanize/content.t ............. Dubious, test returned 2 (wstat 512, 0x2001
Test Summary Report
-------------------
t/01-mech-destroy.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/47-mech-memleak2.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/47-mech-ref-memleak.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/47-mech-simplest.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/48-mech-launch.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/49-mech-get-file.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-follow-link.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-form-with-fields.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-form2.t                    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-activateTab.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  
Failed 67/72 test programs. 13/59 subtests failed.
make: *** [test_dynamic] Fehler 2
  CORION/WWW-Mechanize-Firefox-0.58.tar.gz
one dependency not OK (MozRepl::RemoteObject); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports CORION/WWW-Mechanize-Firefox-0.58.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 ZIGOROU/MozRepl-0.06.tar.gz                  : make_test NO
 CORION/MozRepl-RemoteObject-0.29.tar.gz      : make_test NO one dependency not OK (MozRepl)
 CORION/WWW-Mechanize-Firefox-0.58.tar.gz     : make_test NO one dependency not OK (MozRepl::RemoteObject); additionally test harness failed



whats the deal with this .- is this some sight that i need a better make

well…there are a lot of problems there…
though…i don’t know what they are…
how did you install the module…

I installed mine like this:

cpanm WWW::Mechanize::Firefox

and it did all the things it needed to do…like dependencies and all configurations and testing…

as for the MozRepl…I’ve installed it through firefox…as an add-on and I didn’t had any issues with it…

hello dear harvested

many many thanks for the quick reply…

guess that i have a bad bad make…


                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-app-profile.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-click.t                    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-follow-link.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-form-with-fields.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-form2.t                    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-activateTab.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-bufsize.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-closeTab.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-ct.t                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-encoding.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-event.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-forms.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-get-nocache.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-get.t                 (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-multi-event.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-new-dsl.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-new.t                 (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-save-dialog.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-set-fields-875912.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-mech-status.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-popup.t                    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-rt65615.t                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/50-tick.t                     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-click_button.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-field.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-form-with-fields.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-links.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-navigation.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-sandbox.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-set-content.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/51-mech-submit.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-mech-api-find_link-frames.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-mech-api-find_link.t       (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-mech-xpath.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-selector-frames.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-selector-noframes.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/52-selector-relative.t        (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/53-mech-capture-js-error.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/55-basic-auth.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/60-mech-cookies.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/65-is_visible.t               (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/65-mech-meta.t                (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-download-url.t             (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-mech-png.t                 (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-real-status.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-rt70106-reload.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-rt71216.t                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-tag-team.t                 (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-two-instances.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/70-urlbar.t                   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/75-save_url-cookies.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/99-changes.t                  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 2 tests but ran 0.
t/99-examples.t                 (Wstat: 3328 Tests: 14 Failed: 13)
  Failed tests:  1-3, 5-14
  Non-zero exit status: 13
t/mechanize/autocheck.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/mechanize/content.t           (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/rt65615.t                     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/select.t                      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=72, Tests=59,  5 wallclock secs ( 0.25 usr  0.10 sys +  4.08 cusr  0.62 csys =  5.05 CPU)
Result: FAIL
Failed 67/72 test programs. 13/59 subtests failed.
make: *** [test_dynamic] Fehler 2
  CORION/WWW-Mechanize-Firefox-0.58.tar.gz
one dependency not OK (MozRepl::RemoteObject); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports CORION/WWW-Mechanize-Firefox-0.58.tar.gz
Running make install
  make test had returned bad status, won't install without force
linux-wyee:/home/martin/perl #




guess that i nee a better / make ö- probably the make is missing at all…!!!
i do some further investigations and come backe here
greetings