1

我想在 ubuntu 12.10 上为 perl 安装 Google::Chart 模块。如果我尝试使用以下命令安装模块

cpanm Google::Chart

错误信息:

--> Working on Google::Chart                                                                                                                                            
Fetching http://www.cpan.org/authors/id/D/DM/DMAKI/Google-Chart-0.05014.tar.gz ... OK                                                                                   
Configuring Google-Chart-0.05014 ... OK                                                                                                                                 
Building and testing Google-Chart-0.05014 ... FAIL                                                                                                                      
! Installing Google::Chart failed. See /root/.cpanm/work/1380032137.15804/build.log for details. Retry with --force to force install it.  

日志文件:

#   Failed test 'use Google::Chart;'
#   at /root/.cpanm/work/1380031926.15351/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 350) line 2.
# BEGIN failed--compilation aborted at (eval 350) line 2.

#   Failed test 'use Google::Chart::Marker;'
#   at /root/.cpanm/work/1380031926.15351/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 378) line 2.
# BEGIN failed--compilation aborted at (eval 378) 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/work/1380031926.15351/build.log for details. Retry with --force to force install it.
4

1 回答 1

2

尝试:

cd /root/.cpanm/work/1380031926.15351/Google-Chart-0.05014/ (or wherever it's been unwrapped)
perl Makefile.PL
make && make install
于 2014-08-11T12:43:37.697 回答