Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Catalyst.pl generate project can't run!

by Thai Heng (Beadle)
on Mar 30, 2013 at 10:40 UTC ( #1026265=perlquestion: print w/ replies, xml ) Need Help??
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!

Comment on Catalyst.pl generate project can't run!
Select or Download Code
Re: Catalyst.pl generate project can't run!
by CountZero (Bishop) on Mar 30, 2013 at 11:35 UTC
    Did you check what the error message told you?

    Either ->config->{connect_info} must be defined for LolCatalyst::Lite::Model::Auth or LolCatalyst::Lite::Auth::Schema must have connect info defined on it.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1026265]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-07-29 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls