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

Robert Boone robert at rlb3.com
Mon Apr 10 22:16:56 BST 2006

Not sure is this is the place for this but I will give it a shot.

I'm trying to use CDL with this configuration:

my $loader = Class::DBI::Loader->new(
  dsn => "dbi:mysql:keyshop:",
  user => "user",
  password => "pass",
  namespace => "Data",
  debug => 1,

When I run the script I get: 

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/vendor_perl/5.8.7/Class/DBI/mysql.pm line 58.
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.8.8/Class/DBI/Loader/mysql.pm line 8.
Compilation failed in require at (eval 3) line 2.
BEGIN failed--compilation aborted at (eval 3) line 2.
" at /usr/lib/perl5/vendor_perl/5.8.8/Class/DBI/Loader.pm line 81.

I'm not sure what's wrong. This works on Class::DBI::Loader version 0.22

Robert Boone

More information about the ClassDBI mailing list