<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body style="font-family: DIN-Regular;" text="#000000"
bgcolor="#FFFFFF"><div style="font-family: DIN-Regular;"><span
style="font-family: DIN-Regular;">Warren<br><br>All my perl libs
installed with yum from different repositories. I try to install
perl-Moo version 2 - but at the moment I get more errors :)<br><br>Maybe
I must find a new way to deploy the app or at least the modules I need
on CentOS 5.<br><br>I know cpanm and use it on my develop system. But my
problem is, that I cannot use this in my production environment (no
internet connection - rpm packages only). Also </span>I read something
about App::FatPacker, but in my first try it does not work. Maybe this
is my future.<br><br>Thank you for your reply.<br><br>Regards<br>
Jochen<br><span>
</span><br><blockquote style="border: 0px none;"
cite="mid:CCFB08FC-3E09-452B-AB13-D0F537739BD4@etr-usa.com" type="cite"><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="width:100%;border-top:1px solid #EDEEF0;padding-top:5px"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a moz-do-not-send="true" href="mailto:wyml@etr-usa.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Warren Young</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#9FA2A5"><span style="padding-left:6px">3.
August 2016 um 22:51</span></font></div> </div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div><!----><br>That may be
true as far as it goes, but Moo 1 could not satisfy Dancer 2’s
dependencies. It doesn’t matter if you installed via cpan, cpanm, or a
source tarball, the installation should either have resulted in a
side-by-side installation of Moo 2, or the installation should have
failed.<br><br>I just upgraded to 0.201000 on CentOS 5 via cpanm, and
the stock “dancer2 -a foo” app runs just fine.<br><br>Jochen, did you
perhaps do a “force install” via cpan? If so, I find that installing
via cpanm is much more pleasant and reliable, since it follows
dependencies by default and suppresses all of the interactive queries
cpan passes through from the underlying Perl build system. With cpanm,
the installation either works or doesn’t, and if it doesn’t, there’s
usually a good reason why.<br>_______________________________________________<br>dancer-users
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br><a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="width:100%;border-top:1px solid #EDEEF0;padding-top:5px"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a moz-do-not-send="true" href="mailto:racke@linuxia.de"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Stefan Hornburg (Racke)</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#9FA2A5"><span style="padding-left:6px">3.
August 2016 um 10:45</span></font></div> </div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><div><!----><br>Hello Jochen,<br><br>Dancer2
requires Moo 2, so the perl-Moo is most likely the culprit for this
error.<br><br>Regards<br> Racke<br><br><br></div></div><div
style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="width:100%;border-top:1px solid #EDEEF0;padding-top:5px"> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
<a moz-do-not-send="true" href="mailto:js@betabox.de"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Jochen Schnuerle</a></div> <div
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
right;"> <font color="#9FA2A5"><span style="padding-left:6px">3.
August 2016 um 10:41</span></font></div> </div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 moz-do-not-send="true"
href="https://metacpan.org/pod/Moo#with" class="moz-txt-link-freetext">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 style="display: inline;
font-size: inherit; padding: 0pt;" class="__postbox-detected-content
__postbox-detected-date"
__postbox-detected-content="__postbox-detected-date">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><div>_______________________________________________<br>dancer-users
mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br><a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br></div></div></blockquote><br></div></body></html>