[Catalyst] Issue with Tutorial section 3

rpnoble rpnoble at ibksoftware.com
Tue Dec 23 03:50:28 GMT 2008

In following the Catalyst tutorial for section 3. I can't get catalyst to
create the schema folder. I run the following command:

perl scripit/myapp_create.pl model DB DBIC::Schema MyApp::Schema
creat=dynamic dbi:SQLite:myapp.db

I get the following results:

 exists "C:\__Catalyst\MyApp\lib\MyApp\Model"
 exists "C:\__Catalyst\MyApp\t"
created "C:\__Catalyst\MyApp\lib\MyApp\Model\DB.pm"
created "C:\__Catalyst\MyApp\t\model_DB.t"

but the schema folder and schema.pm file is not created. When I attempt to
run the tets server i get the following message:

C:\__Catalyst\MyApp>perl script/myapp_server.pl
Couldn't instantiate component "MyApp::Model::DB", "Cannot load schema class
App::Schema': Can't locate MyApp/Schema.pm in @INC (@INC contains:
/MyApp/script/../lib C:/Perl/site/lib C:/Perl/lib .) at
t/Model/DBIC/Schema.pm line 295.
 at script/myapp_server.pl line 55" at script/myapp_server.pl line 55
Compilation failed in require at script/myapp_server.pl line 55.

Am I missing somthing?

My enviroment is:

Windows XP sp2
ActiveState Perl 5.8.8 v 819
Catalyst modules
│name                                    │version │abstract                      
│Catalyst-Action-RenderView         │0.08    │Sensible default end action.  
│Catalyst-Component-InstancePer»│0.001001│Moose role to create only one
│Catalyst-Devel                           │1.08    │Catalyst Development
Tools     │site│
│Catalyst-Model-DBI                     │0.20    │DBI Model Class               
│Catalyst-Model-DBI-SQL-Library    │0.15    │SQL::Library DBI Model Class  
│Catalyst-Model-DBIC                   │0.16    │(DEPRECATED) DBIC Model
Class  │site│
│Catalyst-Model-DBIC-Plain            │0.02    │DBIC Model Class              
│Catalyst-Model-DBIC-Schema        │0.21    │DBIx::Class::Schema Model
│Catalyst-Model-DBIC-Schema-Que»│0.05    │DBIx::Class::QueryLog Model
│Catalyst-Plugin-ConfigLoader         │0.21    │Load config files of various
│Catalyst-Plugin-StackTrace           │0.09    │Display a stack trace on the
│Catalyst-Plugin-Static-Simple         │0.20    │Make serving static pages
│Catalyst-Runtime                          │5.7015  │Catalyst  Runtime
version      │site│
│Catalyst-View-TT                        │0.27    │Template View Class           

Thanks for your help....
View this message in context: http://www.nabble.com/Issue-with-Tutorial-section-3-tp21139137p21139137.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.

More information about the Catalyst mailing list