首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cpanm未能安装模块

Cpanm未能安装模块
EN

Stack Overflow用户
提问于 2013-09-24 14:17:24
回答 1查看 4.5K关注 0票数 1

我想在ubuntu12.10上安装用于perl的Google::图表模块。如果我尝试使用以下命令安装模块

代码语言:javascript
复制
cpanm Google::Chart

错误消息:

代码语言:javascript
复制
--> 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.  

日志文件:

代码语言:javascript
复制
#   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.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-11 12:43:37

尝试:

代码语言:javascript
复制
cd /root/.cpanm/work/1380031926.15351/Google-Chart-0.05014/ (or wherever it's been unwrapped)
perl Makefile.PL
make && make install
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18984122

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档