在Active Perl中安装旧版本的模块

问题描述:

我正在尝试在Perl中安装Date :: Manip模块.我正在运行Perl版本5.14.2,它似乎无法通过PPM成功安装. (PPM引发401访问所需错误).我猜这里的错误是模块中ppm的Perl版本已过时.由于这是在服务器中,并且每天都有许多其他脚本在运行,因此我无法升级Perl版本.我需要安装Date :: Manip模块的先前版本,但是在ppm中找不到.我该怎么做呢?

I am trying to install the Date::Manip Module in Perl. I am running Perl Version 5.14.2 and it does not seem to be installing successfully through the PPM. (PPM throws a 401 Access required error). I am guessing that the error here is that the Version of Perl is outdated for the module in the ppm. Since this is in the server and there are many other scripts running on a day to day basis, I can not upgrade the Perl version. I need to install the previous version of the Date::Manip module but this is not found in the ppm. How do I go about doing this ?

谢谢!

出现401错误的原因是因为您使用的ActivePerl 5.14已不再被视为社区版.这意味着除非您从ActiveState购买许可证,否则您将无权访问PPM服务器来安装模块.

The reason the 401 error occurs is because you are using ActivePerl 5.14 which is no longer considered as a Community Edition. This means you no longer have access to the PPM server to install modules unless you buy a license from ActiveState.

请参阅此处以供参考 http://community.activestate.com/taxonomy/term/515

您有几种选择:

  • 您可以购买ActiveState Business Edition许可证,该许可证将再次使您能够访问PPM存储库.
  • 如果已安装MinGW和dmake,则可以从CPAN安装此模块.只需在命令行中输入cpan Date::Manip.
  • 升级到最新版本的ActivePerl. (但是,此版本过期后,您将再次遇到相同的问题.)
  • 您可以安装另一个Perl发行版,例如草莓Perl .
  • You could buy an ActiveState Business Edition License which will give your access to the PPM repository again.
  • If you have MinGW and dmake installed, you can install this module from CPAN instead. Just enter cpan Date::Manip in the command-line.
  • Upgrade to the latest version of ActivePerl. (But you'll have the same problem again when this version expires.)
  • You could install another Perl distribution, like Strawberry Perl.