Thai Heng has asked for the wisdom of the Perl Monks concerning the following question:
I use catalyst.pl LolCatalyst::Lite command. But the project can't run, the error info as follows:
Couldn't instantiate component "LolCatalyst::Lite::Model::Auth", "Eith +er ->config->{connect_info} must be defined for LolCatalyst::Lite::Mo +del::Auth or LolCatalyst::Lite::Auth::Schema must have connect info d +efined on it. Here's what we got: $VAR1 = { 'schema_class' => 'LolCatalyst::Lite::Auth::Schema', '_original_class_name' => 'LolCatalyst::Lite::Model::Auth', 'catalyst_component_name' => 'LolCatalyst::Lite::Model::Auth +' };"Compilation failed in require at /usr/local/share/perl/5.14 +.2/Module/Runtime.pm line 317. at /usr/local/share/perl/5.14.2/Catalyst/Script/Server.pm line 240.
About two months ago, the same command generate a project can run properly. I find a different in Makefile.PL. The new project MakeFile.pl miss the following scropt:
requires 'Catalyst::Plugin::Authentication'; requires 'Catalyst::Plugin::Authorization::Roles'; requires 'Catalyst::Plugin::Session'; requires 'Catalyst::Plugin::Session::State::Cookie'; requires 'Catalyst::Plugin::Session::Store::FastMmap'; requires 'Catalyst::Authentication::Store::DBIx::Class'; requires 'Catalyst::Authentication::Credential::HTTP'; requires 'DBIx::Class::EncodedColumn';
Thanks any response!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst.pl generate project can't run!
by CountZero (Bishop) on Mar 30, 2013 at 11:35 UTC |