welle has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
maybe some of you can be of help in working out what is wrong.
I try to compile the following simple script
#!/usr/bin/perl use strict; use warnings; use Google::Search; my $search = Google::Search->Web( query => { q => "just a word +", lr => 'lang_en', hl => 'en', }, ); while ( my $result = $search->next ) { print $result->rank, " ", $result->uri, "\n"; }
When I create the executable with PerlApp I get the following massage
Class\C3.pm: error: Can't locate Class\C3.pm refby: C:\Perl\site\lib\Mouse\Util.pm line 169 Created 'google.exe' [Test it] Executable size: 2.79 MB [DONE] {.\google.exe} Can't locate JSON/PP.pm in @INC (@INC contains:) at (eval 52) line 3. at perlapp line 843 BEGIN failed--compilation aborted at /<F:\google.exe>Google/Search/Res +ponse.pm line 7. BEGIN failed--compilation aborted at /<F:\google.exe>Google/Search.pm +line 15. BEGIN failed--compilation aborted at google.pl line 4. [DONE]
I have tried this on two machines. I get different error massages on both PCs. I think some modules is missing. Unfortunately I am not very expert...and I have no idea anymore. I packaged other scripts (more complex ones) with no problems at all. I have tried installing what I thought it was missing (a series of JSON packages) with no results. On the other machine, the number of errors after installing the other JSON modules has grown up.
Any wisdom?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: PerlApp google:search
by Anonymous Monk on Aug 17, 2011 at 00:23 UTC | |
by welle (Beadle) on Aug 17, 2011 at 07:10 UTC | |
by Anonymous Monk on Aug 17, 2011 at 07:22 UTC | |
by welle (Beadle) on Aug 17, 2011 at 08:55 UTC | |
by Anonymous Monk on Aug 17, 2011 at 09:09 UTC |
Back to
Seekers of Perl Wisdom