<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body style="font-family: DIN-Regular;" bgcolor="#FFFFFF"
text="#000000"><div style="font-family: DIN-Regular;"><div
class="moz-text-html" lang="x-unicode">
<div style="font-family: DIN-Regular;">Hi,<br><br>my app
create the following message on my CentOS 5 installation:<br><br><small><span
style="font-family: monospace;">[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.</span><br
style="font-family: monospace;"><span style="font-family: monospace;">Compilation
failed in require at /opt/fsi/portal/bin/../lib/fsi.pm line 193.</span><br
style="font-family: monospace;"><span style="font-family: monospace;">Compilation
failed in require at /opt/fsi/portal/bin/fsi.psgi line 22.</span><br
style="font-family: monospace;"><span style="font-family: monospace;">BEGIN
failed--compilation aborted at /opt/fsi/portal/bin/fsi.psgi line 22.</span><br
style="font-family: monospace;"></small><br>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:<br><br><small><span style="font-family:
monospace;">with qw<</span><br style="font-family: monospace;"><span
style="font-family: monospace;"> Dancer2::Core::Role::Hookable</span><br
style="font-family: monospace;"><span style="font-family: monospace;">
Dancer2::Core::Role::ConfigReader</span><br style="font-family:
monospace;"><span style="font-family: monospace;">>;</span><br
style="font-family: monospace;"></small><br>I found a document for
Perl-Moo (<a class="moz-txt-link-freetext"
href="https://metacpan.org/pod/Moo#with">https://metacpan.org/pod/Moo#with</a>)
which said to me, that it
define a role of a class.<br><br>At this point I stop, because I have
not experience with Moo and the object, role and class developing.<br><br><br>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. <br><br>On CentOS 5 I use
perl-Moo version 1.004002 and on CentOS <span
__postbox-detected-content="__postbox-detected-date"
class="__postbox-detected-content __postbox-detected-date"
style="display: inline; font-size: inherit; padding: 0pt;">6/7</span> a
version 2.x. On all
installation I use Dancer2 0.201000 or the latest commit from git.<br><br>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)?<br><span style="font-family:
DIN-Regular;"><br>Regards<br> Jochen<br></span>
<br><br><br><br><br><br><br><br></div>
</div>
</div></body></html>