我想在 perl 中创建一个图表,我找到了 Google::Chart 模块,它看起来非常好。每次我尝试手动安装时,都会遇到很多错误,安装失败。我想我应该安装依赖项:
Warning: prerequisite Class::MOP 0.63 not found.
Warning: prerequisite LWP::UserAgent 0 not found.
Warning: prerequisite Moose 0.54 not found.
Writing Makefile for Google::Chart
Writing MYMETA.yml
但例如,如果我尝试制作 Moose 文件,它会显示 Failed 391/393 测试程序。12/13 子测试失败。
是否有应该安装的基本模块包,或者我应该安装什么才能使用 Google::Chart?
我在 Linux Mint 15 上使用它
编辑:
错误日志:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use Google::Chart::Color;'
# at /root/.cpanm/work/1380630794.4539/Google-Chart-0.05014/inc/Test/UseAllModules.pm line 69.
# Tried to use 'Google::Chart::Color'.
# Error: The type constraint 'Google::Chart::Color::Data' has already been created in Google::Chart::Fill::LinearStripes::Stripe and cannot be created again in Google::Chart::Color at /usr/local/lib/perl/5.14.2/Moose/Util/TypeConstraints.pm line 541.
# Moose::Util::TypeConstraints::_create_type_constraint("Google::Chart::Color::Data", "Str", CODE(0x2cfb8d0), CODE(0x2d02c88), undef, undef) called at /usr/local/lib/perl/5.14.2/Moose/Util/TypeConstraints.pm line 361
# Moose::Util::TypeConstraints::subtype("Google::Chart::Color::Data", HASH(0x2cfb930), HASH(0x2ccb420), HASH(0x2cedab0)) called at lib/Google/Chart/Color.pm line 32
# require Google/Chart/Color.pm called at (eval 353) line 2
# 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;
# use Google::Chart::Color @{$args[0]};
# 1;
#
# ;' called at /usr/share/perl/5.14/Test/More.pm line 885
# Test::More::_eval("package Test::UseAllModules;\x{a}use Google::Chart::Color \@{\$args"..., ARRAY(0x1d29508)) called at /usr/share/perl/5.14/Test/More.pm line 860
# Test::More::use_ok("Google::Chart::Color") called at /root/.cpanm/work/1380630794.4539/Google-Chart-0.05014/inc/Test/UseAllModules.pm line 69
# Test::UseAllModules::all_uses_ok() called at t/00_compile.t line 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 (eval 353) line 2.
# BEGIN failed--compilation aborted at (eval 353) line 2.
# Failed test 'use Google::Chart;'
# at /root/.cpanm/work/1380630794.4539/Google-Chart-0.05014/inc/Test/UseAllModules.pm 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 (eval 354) line 2.
# BEGIN failed--compilation aborted at (eval 354) line 2.
# Failed test 'use Google::Chart::Marker;'
# at /root/.cpanm/work/1380630794.4539/Google-Chart-0.05014/inc/Test/UseAllModules.pm 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 (eval 382) line 2.
# BEGIN failed--compilation aborted at (eval 382) line 2.
Bailout called. Further testing stopped: failed: Google::Chart::Color,Google::Chart,Google::Chart::Marker
FAILED--Further testing stopped: failed: Google::Chart::Color,Google::Chart,Google::Chart::Marker
make: *** [test_dynamic] Error 255
-> FAIL Installing Google::Chart failed. See /root/.cpanm/build.log for details.