Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Catalyst.pl generate project can't run!

by Thai Heng (Beadle)
on Mar 30, 2013 at 10:40 UTC ( [id://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!

Replies are listed 'Best First'.
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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-20 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found