
October 28th, 2012, 08:38 AM
|
|
Contributing User
|
|
Join Date: Aug 2004
Posts: 229
Time spent in forums: 2 Days 14 h 19 m 9 sec
Reputation Power: 0
|
|
|
While installing WWW-Mechanize-Firefox- i get bad Make-Test
hello dear devshed friends
on my notebook i wanted to run A SCRIPT - i got errors over errors.
then i decided to install WWW-Mechanize-Firefox-0.68.tar.gz
well if i want to run this script here:
PHP Code:
#!/usr/bin/perl
use WWW::Mechanize::Firefox;
use strict;
use warnings;
#use Parallel::ForkManager;
#my $fork = Parallel::ForkManager->new(2);
#sites
my @urls = qw(http://www.google.com http://www.yahoo.com http://www.cnn.com http://www.bing.com http://www.nbcnews.com/);
#temp base dir
my $temp = '/home/aaron/cgi-bin/';
for my $each (@urls){
#$fork->start and next;
my $mech = WWW::Mechanize::Firefox->new(launch => 'firefox',create => 1,);
$each =~ /www\.(\w+)\.com/;
my $name = $1;
print "creating $name.png\n";
$mech->get($each);
my $png = $mech->content_as_png(undef, undef, {width => 240,height => 240});
my $dir_name = "$temp/$name".".png";
open my $file, ">", "$dir_name" or die "couldnt create $temp/$1.png";
binmode $file;
print {$file} $png;
close $file;
sleep 5; # sleep some to give it a little time to make sure things compleated..... you'll need this more using fork
#$fork->finish;
}
print "Well All done!\n";
#$fork->wait_all_children;
i get this error
PHP Code:
martin@linux-wyee:~/perl> perl moz_test2.pl
Can't locate WWW/Mechanize/Firefox.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.16.0 /usr/lib/perl5/vendor_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.16.0 /usr/lib/perl5/5.16.0/i586-linux-thread-multi /usr/lib/perl5/5.16.0 /usr/lib/perl5/site_perl/5.16.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.16.0 /usr/lib/perl5/site_perl .) at moz_test2.pl line 3.
BEGIN failed--compilation aborted at moz_test2.pl line 3.
martin@linux-wyee:~/perl>
well - this makes me believe that i need www-mechanize-firefox
what do you think
while installing i run into issues:
i run into troubles : see the following:
PHP Code:
Parse errors: No plan found in TAP output
Files=83, Tests=78, 7 wallclock secs ( 0.26 usr 0.08 sys + 4.64 cusr 0.56 csys = 5.54 CPU)
Result: FAIL
Failed 78/83 test programs. 14/78 subtests failed.
make: *** [test_dynamic] Fehler 2
CORION/WWW-Mechanize-Firefox-0.68.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.68.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.34.tar.gz : make_test NO one dependency not OK (MozRepl)
CORION/WWW-Mechanize-Firefox-0.68.tar.gz : make_test NO one dependency not OK (MozRepl::RemoteObject); additionally test harness failed
well the question of the day is the following:
do i need make!?
pl lemme know.. thx alot..
greetings.
Last edited by metabo : October 28th, 2012 at 09:37 AM.
|