【问题标题】:CPAN - Specio::Constraint::Simple install errorCPAN - Specio::Constraint::Simple 安装错误
【发布时间】:2017-02-01 15:34:27
【问题描述】:

尝试安装Specio::Constraint::Simple,遇到如下错误:

无法解析方法“???”在包中重载“&{}” Specio::Constraint::Simple->new line 处的“Specio::Constraint::Simple” 35.

我找到的唯一相关文章是:https://rt.cpan.org/Public/Bug/Display.html?id=117975

任何建议将不胜感激。

谢谢

【问题讨论】:

  • 看起来确实与最近的 RT 中记录的问题相同。
  • 这可能是旧版本 Role::Tiny 中的一个错误,即 fixed in 1.003003。你有哪个版本的 Role::Tiny?升级能解决吗?
  • @melpomene 神圣的脚本,修复了它!感谢您的帮助,非常感谢非常。您可以将其添加为答案,我会这样标记吗?

标签: perl cpan cpanm


【解决方案1】:

这是由旧版本 Role::Tiny 中的一个错误引起的,即 fixed in version 1.003003

  • 现在应用指定为方法名称而不是子引用的重载 正确

升级 Role::Tiny 应该修复它并允许 Specio::Constraint::Simple 正常安装。

实际上,您甚至不需要手动执行此操作:Specio now requires at least version 1.003003 of Role::Tiny 的 0.26 版。任何未来安装 Specio 的尝试都会自动升级 Role::Tiny(如果需要)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-05
    • 2023-03-06
    • 1970-01-01
    • 2016-09-24
    • 1970-01-01
    • 2014-02-18
    • 2017-03-19
    相关资源
    最近更新 更多