尝试运行 Chart Clicker 时编译失败 [英] Compilation failed while trying to run Chart Clicker

查看:27
本文介绍了尝试运行 Chart Clicker 时编译失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让 Chart Clicker 在 Perl 中工作.我已经下载了示例 pie.pl.我已经通过正确安装所有模块来配置所有内容.但是每当我尝试运行 pie.pl 示例.我得到以下异常.谁能告诉我为什么会发生这种情况,我该如何克服?

I am trying to make Chart Clicker works in Perl. I have downloaded the example pie.pl. And I have configured everything by installing all the modules properly. But whenever I try to run the pie.pl example. I get the below exception. Can anyone suggest me why is it happening and how can I overcome this?

C:\Perl64\site>perl pie.pl
Subroutine share_axes_with redefined at lib/Chart/Clicker/Context.pm line 120.
The 'add_attribute' method cannot be called on an immutable instance at C:/Perl64/site/lib/Class/MOP/Class/Immutable/Trait.pm line 32.
        Class::MOP::Class::Immutable::Trait::_immutable_cannot_call('add_attribute') called at C:/Perl64/site/lib/Class/MOP/Class/Immutable/Trait.pm l
ine 47
        Class::MOP::Class:::around('CODE(0x35683d8)', 'Class::MOP::Class::Immutable::Moose::Meta::Class=HASH(0x5833518)', 'domain_axis', 'default', 'C
ODE(0x3dd85d0)', 'is', 'rw', 'isa', 'Chart::Clicker::Axis', ...) called at C:/Perl64/site/lib/Class/MOP/Method/Wrapped.pm line 162
        Class::MOP::Method::Wrapped::__ANON__('Class::MOP::Class::Immutable::Moose::Meta::Class=HASH(0x5833518)', 'domain_axis', 'default', 'CODE(0x3d
d85d0)', 'is', 'rw', 'isa', 'Chart::Clicker::Axis', 'definition_context', ...) called at C:/Perl64/site/lib/Class/MOP/Method/Wrapped.pm line 91
        Class::MOP::Class::Immutable::Moose::Meta::Class::add_attribute('Class::MOP::Class::Immutable::Moose::Meta::Class=HASH(0x5833518)', 'domain_ax
is', 'default', 'CODE(0x3dd85d0)', 'is', 'rw', 'isa', 'Chart::Clicker::Axis', 'definition_context', ...) called at C:/Perl64/site/lib/Moose.pm line 79

        Moose::has('Class::MOP::Class::Immutable::Moose::Meta::Class=HASH(0x5833518)', 'domain_axis', 'is', 'rw', 'isa', 'Chart::Clicker::Axis', 'defa
ult', 'CODE(0x3dd85d0)') called at C:/Perl64/site/lib/Moose/Exporter.pm line 382
        Moose::has('domain_axis', 'is', 'rw', 'isa', 'Chart::Clicker::Axis', 'default', 'CODE(0x3dd85d0)') called at lib/Chart/Clicker/Context.pm line
 41
        require lib/Chart/Clicker/Context.pm called at pie.pl line 5
        main::BEGIN() called at lib/Chart/Clicker/Context.pm line 0
        eval {...} called at lib/Chart/Clicker/Context.pm line 0
Compilation failed in require at pie.pl line 5.
BEGIN failed--compilation aborted at pie.pl line 5.

如果有人需要任何文件的更多信息.请告诉我,我会上传那个文件.

If anyone need more information for any file. Please let me know, I will upload that file.

推荐答案

我猜你需要运行 moose-outdated.这是一个带有 Moose 的脚本,运行它会产生一个模块列表(如果任何)与您安装的 Moose 版本不兼容.升级这些模块.

I'm going to guess that you need to run moose-outdated. This is a script that comes with Moose, and running it will produce a list of modules (if any) that are incompatible with the version of Moose you have installed. Upgrade those modules.

这篇关于尝试运行 Chart Clicker 时编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆