Hi,

my app create the following message on my CentOS 5 installation:

[root@fsisrv5 ~]# Error while loading /opt/fsi/portal/bin/fsi.psgi: Can't locate object method "has_hook" via package "Dancer2::Session::YAML" at /opt/fsi/portal/bin/../lib/Dancer2/Core/App.pm line 543.
Compilation failed in require at /opt/fsi/portal/bin/../lib/fsi.pm line 193.
Compilation failed in require at /opt/fsi/portal/bin/fsi.psgi line 22.
BEGIN failed--compilation aborted at /opt/fsi/portal/bin/fsi.psgi line 22.

I find the sub in Hookable.pm in line 92. So I search for the load of this perl module and find in App.pm following:

with qw<
    Dancer2::Core::Role::Hookable
    Dancer2::Core::Role::ConfigReader
>;

I found a document for Perl-Moo (https://metacpan.org/pod/Moo#with) which said to me, that it define a role of a class.

At this point I stop, because I have not experience with Moo and the object, role and class developing.


If I run my app on a CentOS 6 or 7 installation, all work fine. So I think the source of the Dancer2 framework is ok.

On CentOS 5 I use perl-Moo version 1.004002 and on CentOS 6/7 a version 2.x. On all installation I use Dancer2 0.201000 or the latest commit from git.

Is there a way to find out which module on CentOS 5 create the error above? Is this a problem with the perl-Moo module? Or I am missing something else (pm)?

Regards
    Jochen