well i am new to PL so do not bear with me if i ask nasty questions.
i run openSuse 12.3
but in the past i had several issues with installing some perl packages
I run into troubles several times - with several openSuse-releases.
guess that i sometimes messed up the installation -
well now i want to try out a new way - i have heard bout puppylinux and i eagerly look for a package that contains
a. mozrepl and
b. Mechanize::FireFox
is this doable - on a Puppy-Live-DVD !?
welll i have tried to install all that stuff via
a. Repos of opensuse
b. CPAN
no thing worked either!?
i have had CPAN-Dependencies,
BTW - the OpenSuse-people are somewhat "religios ppl." they do not allow me to install via CPAN - they force me to do all the things by adding a Repository (from opensuse).
But - guess that i have to try out the CPAN-way. It seems to be a good way.
The last time i tried to install Mozrepl i did something wrong and i guess that i messed up all the machine. All the things were messed up totally.
At the end .- have had errors over errors. it was terrible.
see the error reports i have had... btw - i guess that i somethimes have had a bad Make on the machine - or a bad make-test. What do you think"!?
here i provide you with the reports of the failed trials of installation ....
what has happened in the past: i have had 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 hard to do: Especially the "Installation" section seems particularly applicable to my situation here!
see also...: https://forums.opensuse.org/english/...make-test.html
n i decided to install WWW-Mechanize-Firefox-0.68.tar.gz
but i run into troubles : see the following:
Code: Select all
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, wont 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
If i run the script i got fatal errors -
Code: Select all
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
what is aimed:
i have a list of 2,500 URLs, one on each line, saved in a file. i want the script to open the file, read a line, then retrieve the website? If so, something like this:
Filename: urls.txt
Code: Select all
Google.com
CNN.com
news.bbc.co.uk
Bing.com
Yahoo.com
and so on and so forth...
Code: Select all
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;
But as mentioned above - this were the issues i have runned into. Now i have a totally fresh installed Opensuse - 12.3 and i can begin at the beginning.
Guess that i have to start over with the CPAN or even better
to try it out with a PUPPY-Linux.
do you think that puppy can have all the necessary things i need - all included in a Live-CD or DVD!?
what do you think!?
love to hear from you
say hello to the woerld