Subject: | Catalyst Tutorial version issues |
Date: | Thu, 8 Dec 2011 22:15:12 +1100 |
To: | bug-Catalyst [...] rt.cpan.org |
From: | Joe Preposition <prepositionjoe [...] gmail.com> |
I was going through the Catalyst::Tutorial at
http://search.cpan.org/~bobtfish/Catalyst-Manual-5.8008/lib/Catalyst/Manual/Tutorial/02_CatalystBasics.podand
the very first bit of example code wouldn't run with -r, that is,
script/hello_server.pl
worked but
script/hello_server.pl -r didn''t.
Solution was to update two modules which were out of date (found this using
moose-outdated) File::ChangeNotify and MooseX::SemiAffordanceAccessor
Bad versions: File-ChangeNotify-0.12 and MooseX-SemiAffordanceAccessor-0.05
Required versions: File-ChangeNotify-0.20 and
MooseX-SemiAffordanceAccessor-0.09
Full error message:
Undefined subroutine &Moose::Util::MetaRole::apply_metaclass_roles
called at /usr/local/lib/perl5/site_perl/5.10.1/MooseX/SemiAffordanceAccessor.pm
line 25.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.10.1/File/ChangeNotify/Watcher/Default.pm
line 19.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.10.1/Module/Runtime.pm line 205.
at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Restarter.pm line 83