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

Hi,

I am trying to install Google::Chart module and it seems to fail everytime. Finally after fixing a lot of errors, am now stuck in the following error:

DMAKI/Google-Chart-0.05014.tar.gz C:\Perl64\site\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DMAKI/Google-Chart-0.05014.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: DMAKI/Google-Chart-0.05014.tar.gz : make_test NO
Looks like an issue with the module.Any suggestions?

Full log here:

cpan> install Google::Chart Running install for module 'Google::Chart' Running make for D/DM/DMAKI/Google-Chart-0.05014.tar.gz Has already been unwrapped into directory C:\Perl64\cpan\build\Googl +e-Chart-0. 05014-WyBXzF Has already been made Running make test C:\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e +" "undef * Test::Harness::Switches; test_harness(0, 'inc', 'blib\lib', 'blib\arch +')" t/*.t t/00_compile.t ....... 1/33 # Failed test 'use Google::Chart::Color;' # at C:\Perl64\cpan\build\Google-Chart-0.05014-WyBXzF\inc/Test/UseAl +lModules.p m line 69. # Tried to use 'Google::Chart::Color'. # Error: The type constraint 'Google::Chart::Color::Data' has alr +eady been created in Google::Chart::Fill::LinearStripes::Stripe and cannot be cr +eated agai n in Google::Chart::Color at C:/Perl64/lib/Moose/Util/TypeConstraints. +pm line 54 1. # Moose::Util::TypeConstraints::_create_type_constraint('Google: +:Chart::Co lor::Data', 'Str', 'CODE(0x3ecedf8)', 'CODE(0x3ecf340)', undef, undef) + called at C:/Perl64/lib/Moose/Util/TypeConstraints.pm line 361 # Moose::Util::TypeConstraints::subtype('Google::Chart::Color::D +ata', 'HAS H(0x3eced38)', 'HASH(0x3d2df68)', 'HASH(0x3ecdb48)') called at lib/Goo +gle/Chart/ Color.pm line 32 # require Google/Chart/Color.pm called at C:\Perl64\cpan\build\G +oogle-Char t-0.05014-WyBXzF\inc/Test/UseAllModules.pm line 69 # Test::UseAllModules::BEGIN() called at lib/Google/Chart/Color. +pm line 0 # eval {...} called at lib/Google/Chart/Color.pm line 0 # eval 'package Test::UseAllModules; # # #line 69 C:\\Perl64\\cpan\\build\\Google-Chart-0.05014-WyBXzF\\inc/T +est/UseAll Modules.pm # use Google::Chart::Color @{$args[0]}; # 1; # # ;' called at C:/Perl64/site/lib/Test/More.pm line 992 # Test::More::_eval('package Test::UseAllModules;\x{a}\x{a}#line + 69 C:\Per l64\cpan\build\G...', 'ARRAY(0x295fcc0)') called at C:/Perl64/site/lib +/Test/More .pm line 967 # Test::More::use_ok('Google::Chart::Color') called at C:\Perl64 +\cpan\buil d\Google-Chart-0.05014-WyBXzF\inc/Test/UseAllModules.pm line 69 # Test::UseAllModules::all_uses_ok() called at t/00_compile.t li +ne 4 # main::BEGIN() called at lib/Google/Chart/Color.pm line 0 # eval {...} called at lib/Google/Chart/Color.pm line 0 # Compilation failed in require at C:\Perl64\cpan\build\Google-Chart-0 +.05014-WyB XzF\inc/Test/UseAllModules.pm line 69. # BEGIN failed--compilation aborted at C:\Perl64\cpan\build\Google-Cha +rt-0.05014 -WyBXzF\inc/Test/UseAllModules.pm line 69. # Failed test 'use Google::Chart;' # at C:\Perl64\cpan\build\Google-Chart-0.05014-WyBXzF\inc/Test/UseAl +lModules.p m line 69. # Tried to use 'Google::Chart'. # Error: Attempt to reload Google/Chart/Color.pm aborted. # Compilation failed in require at lib/Google/Chart.pm line 9. # BEGIN failed--compilation aborted at lib/Google/Chart.pm line 9. # Compilation failed in require at C:\Perl64\cpan\build\Google-Chart-0 +.05014-WyB XzF\inc/Test/UseAllModules.pm line 69. # BEGIN failed--compilation aborted at C:\Perl64\cpan\build\Google-Cha +rt-0.05014 -WyBXzF\inc/Test/UseAllModules.pm line 69. # Failed test 'use Google::Chart::Marker;' # at C:\Perl64\cpan\build\Google-Chart-0.05014-WyBXzF\inc/Test/UseAl +lModules.p m line 69. # Tried to use 'Google::Chart::Marker'. # Error: Attempt to reload Google/Chart/Color.pm aborted. # Compilation failed in require at lib/Google/Chart/Marker.pm line 68. # BEGIN failed--compilation aborted at lib/Google/Chart/Marker.pm line + 68. # Compilation failed in require at C:\Perl64\cpan\build\Google-Chart-0 +.05014-WyB XzF\inc/Test/UseAllModules.pm line 69. # BEGIN failed--compilation aborted at C:\Perl64\cpan\build\Google-Cha +rt-0.05014 -WyBXzF\inc/Test/UseAllModules.pm line 69. Bailout called. Further testing stopped: failed: Google::Chart::Colo +r,Google:: Chart,Google::Chart::Marker FAILED--Further testing stopped: failed: Google::Chart::Color,Google:: +Chart,Goog le::Chart::Marker dmake.exe: Error code 255, while making 'test_dynamic' DMAKI/Google-Chart-0.05014.tar.gz C:\Perl64\site\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DMAKI/Google-Chart-0.05014.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: DMAKI/Google-Chart-0.05014.tar.gz : make_test NO

Replies are listed 'Best First'.
Re: Installing Google::Chart
by kcott (Archbishop) on Apr 22, 2014 at 05:15 UTC

    G'day sidsinha,

    [Disclaimer: I'm not a user of Google::Chart.]

    Google::Chart 0.05014 is about 5 years old; although, it is the latest non-developer release.

    The CPAN Testers' Reports indicate more than a third of tests failed.

    There are quite a few Active bugs for Google-Chart. Several of these are related to Moose - there are some patches. I haven't investigated further.

    If none of patches fix your problem, you could try a Developer Release - the most recent of those is still 2.5 years old.

    It's possible that this module is no longer being actively maintained.

    -- Ken

      Thanks Ken!

      Any other recomendations? I have used GD::Graph earlier but it does not have a very good UI aesthetics... I was gonna try Chart::Gnuplot and Chart::Clicker. Any suggestions welcome :)

      Thanks!
        "Thanks Ken!"

        You're welcome.

        "Any other recomendations?"

        Unfortunately not. The last time I used anything similar was over a decade ago; so, no up-to-date knowledge in this area at all.

        "I have used GD::Graph earlier but it does not have a very good UI aesthetics..."

        Yes, I seem to recall that's what I used all those years ago. I also seem to remember struggling with the UI too; although, that's very old news now.

        -- Ken

        I have used Chart::Clicker at $WORK and have been rather happy with it.

        The only issue I have encountered is a memory leak when generating a large number of charts at a time.