EvanCarroll has asked for the wisdom of the Perl Monks concerning the following question:

This module is very essential to my task and I'm having alot of problems installing it, anyone have an idea of where of start or what to do. I deleted SOAP::Lite, installed it again, no problem, installed perfectly. Yet Net::Google still bugs out, can anyone confirm this on a new install of Net::Google? This is my log:
# The Google API web service requires that you provide create a Google + Account and obtain a license key # This key is then passed with each request you make to the Google ser +vers. # If you do not already have a Google Account, you can sign up for one + here: # http://www.google.com/apis/ # # Please enter your Google API key: [[:MY API KEY:]] t/000-key.........ok t/001-search......ok 1/5Use of uninitialized value in concatenation (. +) or string at /root/.cpan/build/Net-Google-1.0/blib/lib/Net/Google/S +ervice.pm line 80. Service description 'file:' can't be loaded: 404 File `' does not exis +t # Looks like you planned 5 tests but only ran 3. # Looks like your test died just after 3. t/001-search......dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-5 Failed 2/5 tests, 60.00% okay t/002-spelling....ok 1/5Use of uninitialized value in concatenation (. +) or string at /root/.cpan/build/Net-Google-1.0/blib/lib/Net/Google/S +ervice.pm line 80. Service description 'file:' can't be loaded: 404 File `' does not exis +t # Looks like you planned 5 tests but only ran 3. # Looks like your test died just after 3. t/002-spelling....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-5 Failed 2/5 tests, 60.00% okay t/003-cache.......ok 1/5Use of uninitialized value in concatenation (. +) or string at /root/.cpan/build/Net-Google-1.0/blib/lib/Net/Google/S +ervice.pm line 80. Service description 'file:' can't be loaded: 404 File `' does not exis +t # Looks like you planned 5 tests but only ran 3. # Looks like your test died just after 3. t/003-cache.......dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-5 Failed 2/5 tests, 60.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/001-search.t 255 65280 5 4 80.00% 4-5 t/002-spelling.t 255 65280 5 4 80.00% 4-5 t/003-cache.t 255 65280 5 4 80.00% 4-5 Failed 3/4 test scripts, 25.00% okay. 6/18 subtests failed, 66.67% oka +y. make: *** [test] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force root:/home/evan/mail/DBD-Google-0.11#
And this is line 80:   my $soap = SOAP::Lite->service("file:".__PACKAGE__->_service($service));


SOLUTION: Use apt-get


Evan Carroll
www.EvanCarroll.com

Replies are listed 'Best First'.
Re: Net::Google install problem
by BUU (Prior) on Dec 19, 2005 at 19:37 UTC
    Run each failing test file manually to determine exactly which code is failing.
      <s>... How do I do that, 'make test' returns the same thing..</s>

      It would apear as if Net::Google requires Net::Google in t-001. This is the test that fails.
      root:~/.cpan/build/Net-Google-1.0# perl ./t/001-search.t 1..5 ok 1 - Read Google API key not ok 2 - use Net::Google; # Failed test 'use Net::Google;' # in ./t/001-search.t at line 33. # Tried to use 'Net::Google'. # Error: Can't locate Net/Google.pm in @INC (@INC contains: /etc/ +perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/p +erl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/loca +l/lib/site_perl .) at (eval 3) line 2. # BEGIN failed--compilation aborted at ./t/001-search.t line 33. Can't locate object method "new" via package "Net::Google" (perhaps yo +u forgot to load "Net::Google"?) at ./t/001-search.t line 34. # Looks like you planned 5 tests but only ran 2. # Looks like you failed 1 test of 2 run. # Looks like your test died just after 2.


      Evan Carroll
      www.EvanCarroll.com

        ITYM perl -Mblib ./t/001-search.t instead.

        prove -vl t/001-search.t

        Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan
        Net::Google should probably be in ./blib/Net/Google.pm (or possibly ./lib)
Re: Net::Google install problem
by Qiang (Friar) on Feb 23, 2006 at 20:37 UTC
    This is a known issue, please refer to this ticket: http://rt.cpan.org/Public/Bug/Display.html?id=16384

    in essence,

    1. cd /PATH/TO/.cpan/build/Net-Google-1.0
    2. sudo cp -pR lib/Net/Google/Services blib/lib/Net/Google/
    3. perl -Mblib t/001-search.t
    4. perl -Mblib t/002-spelling.t
    5. perl -Mblib t/003-cache.t
    6. sudo make install