[Catalyst] error running script/app_server.pl

Octavian Rasnita orasnita at fcc.ro
Sat Mar 4 21:46:14 CET 2006


Hi,

I have created the first test Catalyst application (under Windows 2000,
ActivePerl 5.8.7) and I have followed the pod documentation for doing this.

All went fine, but when I run

perl script/brk_server.pl

it gives the following error:

E:\web\brk>perl script/brk_server.pl
Subroutine File::Slurp::O_RDWR redefined at E:/usr/site/lib/File/Slurp.pm
line 7
Subroutine File::Slurp::O_CREAT redefined at E:/usr/site/lib/File/Slurp.pm
line 7
Subroutine File::Slurp::O_EXCL redefined at E:/usr/site/lib/File/Slurp.pm
line 7
Couldn't load "brk::View::TToolkit", "Invalid CODE attribute: Private at
E:/web/brk/script/../lib/brk/View/TToolkit.pm l
ine 6
BEGIN failed--compilation aborted at
E:/web/brk/script/../lib/brk/View/TToolkit.pm line 9.
Compilation failed in require at E:/usr/site/lib/Module/Pluggable/Fast.pm
line 82.
" at E:/usr/site/lib/Module/Pluggable/Fast.pm line 84.
Compilation failed in require at script/brk_server.pl line 49.
E:\web\brk>


Here is the content of the file lib/brk/View/TToolkit.pm

package brk::View::TToolkit;

use strict;
use base 'Catalyst::View::TT';

sub end : Private {
my ($self, $c) = @_;
$c->forward('brk::View::TToolkit') unless $c->res->body();
}

1;

Did I make something wrong? Or what could be the problem?

Thank you.

Teddy




More information about the Catalyst mailing list