我在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.
我该如何处理这类问题?
Date :: Manip需要Perl 5.10才能运行,请参阅META.yml:
requires: ... perl: 5.010
在旧版本(5.56) ,而不是只需要Perl 5.001发挥作用,因此应该是安全的为您安装.
换句话说,如果您需要最新版本,则必须将系统的perl更新为至少5.10.不幸的是,CentOS附带了旧的5.8.8版本.