如何在CPAN上处理需要Perl devel版本的模块?

seb*_*ert 0 perl centos5 cpan

我在CentOS5.5上测试我的项目安装脚本.我的项目需要Date :: Manip模块,需要功能模块......

当我尝试通过CPAN 安装它(功能)时,CPAN想要安装Perl 5.9.5 ......

*** WHOA THERE!!! ***

    This is an UNSTABLE DEVELOPMENT release.
    The version of this perl5 distribution is 9, that is, odd,
    (as opposed to even) and that signifies a development release.
    If you want a maintenance release, you want an even-numbered version.

    Do ***NOT*** install this into production use.
    Data corruption and crashes are possible.

    It is most seriously suggested that you do not continue any further
    unless you want to help in developing and debugging Perl.

    If you *still* want to build perl, you can answer 'y' now,
    or pass -Dusedevel to Configure.
Run Code Online (Sandbox Code Playgroud)

我该如何处理这类问题?

mfo*_*ani 5

Date :: Manip需要Perl 5.10才能运行,请参阅META.yml:

requires:
  ...
  perl: 5.010
Run Code Online (Sandbox Code Playgroud)

旧版本(5.56) ,而不是只需要Perl 5.001发挥作用,因此应该是安全的为您安装.

换句话说,如果您需要最新版本,则必须将系统的perl更新为至少5.10.不幸的是,CentOS附带了旧的5.8.8版本.

  • `cpan SBECK/Date-Manip-5.56.tar.gz` (3认同)
  • 除非作者明确地将其从CPAN中移除,否则他们通常会在那里.相反,BackPAN索引所有版本,甚至是从CPAN中删除的版本:请参阅http://backpan.perl.org/authors/id/S/SB/SBECK/以获取该作者的模块. (2认同)