[CDBI] Class::DBI::Loader::mysql error

Fred Moyer fred at redhotpenguin.com
Sat Feb 4 18:13:14 GMT 2006

Alexander Solla wrote:
> Hi everybody,
> I'm having a heck of a time figuring out why
> perl -e 'use Class::DBI::Loader::mysql'
> fails with "Can't locate object method "set_sql" via package  
> "Class::DBI::mysql" at /usr/local/lib/perl5/site_perl/5.8.7/Class/DBI/ 
> mysql.pm line 58.
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.7/ 
> Class/DBI/Loader/mysql.pm line 8."

IIRC this was the same error I got when trying to check for the 
existence of plugins from the command line using the same syntax.  You 
may need to 'use Class::DBI' before you can use any plugins or 
derivative classes.

> Obviously, this error isn't a "natural" error.  I'm trying to install  a 
> Catalyst CDBI module and an eval fails with the same error.  So I  poked 
> around the code, found the eval, and noticed that it was  equivalent to 
> 'use Class::DBI::Loader::mysql'.
> Does anyone have any suggestions?
> Thanks,
> Alex

More information about the ClassDBI mailing list