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

Robert Boone <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
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:127.0.0.1",
  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.