Thanks very much. Your suggestion prompted me to look again at the "use
Catalyst qw/ /;" statement in the main package, and I had typed
Authentication::Roles by mistake. The book's instructions are fine. All's well.
DP
On Jul 9, 2013, at 7:19 PM, Alexander Hartmaier wrote:
> It might be a mistake in the book, the module's name is
> Catalyst::Plugin::Authorization::Roles.
>
> BR Alex
>
> On 2013-07-09 11:59, Drew Poulin wrote:
>> Hello Catalyst mavens,
>>
>> I'm working through the SneakyCat tutorial in chapter 8 of the The
>> Definitive Guide to Catalyst. I've created and edited the files as
>> described in the book, but when I start the development server, it complains
>> that it can't find Catalyst::Plugin::Authentication::Roles.pm:
>>
>> jsocial@linux-b0go:‾/SneakyCat> script/sneakycat_server.pl -r -d
>> Can't locate Catalyst/Plugin/Authentication/Roles.pm in @INC (@INC contains:
>> /home/jsocial/SneakyCat/script/../lib
>> /home/jsocial/perl5/lib/perl5/i586-linux-thread-multi
>> /home/jsocial/perl5/lib/perl5
>> /usr/lib/perl5/site_perl/5.14.2/i586-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.14.2
>> /usr/lib/perl5/vendor_perl/5.14.2/i586-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.14.2
>> /usr/lib/perl5/5.14.2/i586-linux-thread-multi /usr/lib/perl5/5.14.2
>> /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/5.14.2/Class/Load.pm
>> line 177. Compilation failed in require at
>> /home/jsocial/perl5/lib/perl5/Catalyst/Restarter/Forking.pm line 20.
>>
>> Sure enough, it seems not to be on my machine:
>>
>> jsocial@linux-b0go:‾/perl5/lib/perl5/Catalyst/Plugin/Authentication> ls
>> Credential Internals.pod Store User User.pm
>>
>> But when I try to install it, CPAN says it doesn't know anything about it:
>>
>> jsocial@linux-b0go:~> cpan Catalyst::Plugin::Authentication::Roles
>> Reading '/home/jsocial/.cpan/Metadata'
>> Database was generated on Sun, 07 Jul 2013 16:41:02 GMT
>> Warning: Cannot install Catalyst::Plugin::Authentication::Roles, don't know
>> what it is.
>>
>> I haven't been able to find anything indicating there's been a relevant
>> change in the distribution since the book was published. I'm running Perl
>> 5.14.2 and Catalyst 5.9. I would appreciate any suggestions.
>>
>> DP
>>
>>
>>
>>
>>
>> ___
>> List: Catalyst@lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>
>
>
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
> T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
> Handelsgericht Wien, FN 79340b
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
> Notice: This e-mail contains information that is confidential and may be
> privileged.
> If you are not the intended recipient, please notify the sender and then
> delete this e-mail immediately.
> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/