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?


In reply to PerlApp google:search by welle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.