Compilation failed while trying to run Chart Clicker

若如初见. 提交于 2019-12-11 10:27:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/11788445/compilation-failed-while-trying-to-run-chart-clicker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!