Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
PerlMonks 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 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/ line 317. at /usr/local/share/perl/5.14.2/Catalyst/Script/ 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 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 generate project can't run!
Select or Download Code
Replies are listed 'Best First'.
Re: 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.


    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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-30 15:10 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (271 votes), past polls