[Catalyst] new install -- problem creating a model

Jürgen Peters taulmarill at xgn.de
Wed Jul 6 16:36:14 CEST 2005

On Wed, 6 Jul 2005 10:23:38 -0400, Keith Wolters wrote 
> I came to the part where it said to create a model.  
> Here's a transcript of what happened then: 
> [root at palprx01 catalyst]# cd MiniMojo/  [root at palprx01 MiniMojo]#
script/minimojo_create.pl model minimojo CDBI
dbi::SQLite:/home/kwolters/catalyst/MiniMojo/minimojo.db   exists
Couldn't require loader class "Class::DBI::Loader::", "Can't locate
Class/DBI/Loader/.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at (eval
20) line 2, <DATA> line 1.  BEGIN failed--compilation aborted at (eval 20)
line 2, <DATA> line 1.  " at
/usr/lib/perl5/site_perl/5.8.0/Class/DBI/Loader.pm line 79, <DATA> line 1.  
> If I run 'perl -MClass::DBI::Loader' I get no error so why does 
> minimojo_create.pl fail? 

you made a mistake by typing two collons after dbi. the script parsing that
string searches for the database type between those two collons, that's why it
wants to load Class/DBI/Loader/.pm instead of Class/DBI/Loader/SQLite.pm


More information about the Catalyst mailing list