[Catalyst] Couldn't require loader class "Class::DBI::Loader::mysql"

Matt S Trout dbix-class at trout.me.uk
Thu Apr 6 21:37:53 CEST 2006


Carlos Vicente wrote:
> Hi, 
> 
> while trying to build my model I get this:
> 
> # script/netdot_create.pl model CDBI CDBI dbi:mysql:netdot
> ...
> Couldn't require loader class "Class::DBI::Loader::mysql", "Can't locate
> object method "set_sql" via package "Class::DBI::mysql"
> at /usr/lib/perl5/site_perl/5.8.7/Class/DBI/mysql.pm line 58.
> Compilation failed in require
> at /usr/lib/perl5/site_perl/5.8.7/Class/DBI/Loader/mysql.pm line 8.
> Compilation failed in require at (eval 16) line 2.
> BEGIN failed--compilation aborted at (eval 16) line 2.
> " at /usr/lib/perl5/site_perl/5.8.7/Class/DBI/Loader.pm line 81.
> 
> 
> I googled the error and found this thread:
> 
> http://groups.google.com/group/comp.lang.perl.modules/browse_thread/thread/792e7eeaec182015/97c70665dbd071f9
> 
> but I wonder if it has to do with how the Catalyst::Helper stuff deals
> with it.
> 
> Anyone seen this kind of problem before?

It's a Class::DBI::Loader bug, already reported on CPAN.

For new applications I'd strongly recommend using DBIx::Class instead.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list