Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

PerlApp google:search

by welle (Beadle)
on Aug 16, 2011 at 23:25 UTC ( #920592=perlquestion: print w/ replies, xml ) Need Help??
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?

Comment on PerlApp google:search
Select or Download Code
Re: PerlApp google:search
by Anonymous Monk on Aug 17, 2011 at 00:23 UTC

    Unfortunately I am not very expert...and I have no idea anymore

    Well, this is FAQ, so RTFineM :) Then --add JSON and any other modules Google::Search needs

      The JSON/PP module is already there...

        The error message disagrees with you

        Or if JSON::PP itself is there, maybe all the modules it depends on, aren't there

      just to better understand things: if the script is properly working from the shell, is it not possibile to force the packager to skeep such modules? (I see, there are maybe modules missing, but the script still works properly. Anyway, I installed all related modules I could, but it is still coming up with others (sub)modules missing). I am running the script both on ActiveState Perl 5.9 and 5.12. The same problem applyes if I port the simple script to the Perl module bing::search... I'm puzzled

        just to better understand things: if the script is properly working from the shell, is it not possibile to force the packager to skeep such modules?

        That makes no sense

        The same problem applyes if I port the simple script to the Perl module bing::search... I'm puzzled

        FYI, ActiveState provides support for PerlApp ... try the mailing list

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://920592]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-24 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls