首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带cpan的Pb安装日期::Manip

带cpan的Pb安装日期::Manip
EN

Stack Overflow用户
提问于 2012-11-07 06:48:49
回答 2查看 5.9K关注 0票数 1

我为一天的安装日期而苦苦挣扎:使用cpan (我使用的是os x)。我总是收到这样的消息

代码语言:javascript
复制
Warning: prerequisite Test::Inter 0 not found.
Bareword found where operator expected at ./Makefile.PL line 1, near "30 mtime"
    (Missing operator before mtime?)
Number found where operator expected at ./Makefile.PL line 2, near "30"
    (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 2, near "30 atime"
    (Missing operator before atime?)
Number found where operator expected at ./Makefile.PL line 3, near "30"
    (Missing semicolon on previous line?)
Bareword found where operator expected at ./Makefile.PL line 3, near "30 ctime"
    (Missing operator before ctime?)
ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/Makefile.PL: ERROR from evaluation of /Users/mehdibenchoufi/.cpan/build/SBECK-QEN4kY/Date-Manip-6.36/PaxHeaders.11917/Makefile.PL: syntax error at ./Makefile.PL line 1, near "30 mtime"
Warning: No success on command[/opt/local/bin/perl5.12 Makefile.PL]
'YAML' not installed, will not store persistent state
  SBECK/Date-Manip-6.36.tar.gz
  /opt/local/bin/perl5.12 Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Failed during this command:
 SBECK/Date-Manip-6.36.tar.gz                 : writemakefile NO '/opt/local/bin/perl5.12 Makefile.PL' returned status 65280

有人知道如何调试吗?

EN

回答 2

Stack Overflow用户

发布于 2012-11-10 03:43:15

我遇到了同样的问题,这些步骤对我很有效:

代码语言:javascript
复制
> sudo cpan
cpan[1]> install CPAN
cpan[2]> exit
> sudo rm -rf ~/.cpan/build/SBECK-*
> sudo cpan Date::Manip
票数 4
EN

Stack Overflow用户

发布于 2012-11-08 01:44:52

首先安装YAML.pm和Test::Iter.pm

但。您可能不想弄乱OS上的系统perl。

您可能希望认真考虑使用perlbrew来管理perl的本地安装,它有自己的一组模块,独立于系统安装。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13260673

复制
相关文章

相似问题

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