Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Class::DBI::Loader problems

by rlb3 (Deacon)
on Apr 12, 2006 at 16:43 UTC ( [id://542882]=note: print w/replies, xml ) Need Help??


in reply to Re: Class::DBI::Loader problems
in thread Class::DBI::Loader problems

I've tried all of the suggestions but no dice. Here are a few things I've noticed because of your questions.

If I type perl -MClass::DBI::Loader::mysql -e 1 I get:

Can't locate object method "set_sql" via package "Class::DBI::mysql" a +t /usr/lib/perl5/site_perl/5.8.8/Class/DBI/mysql.pm line 58. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/Class/ +DBI/Loader/mysql.pm line 8. Compilation failed in require. BEGIN failed--compilation aborted.

And if I type perl -MClass::DBI::mysql -e 1 I get no errors at all. I've even reinstalled DBD::mysql. I appreciate all the help I have recived so far.

Replies are listed 'Best First'.
Re^3: Class::DBI::Loader problems
by lestrrat (Deacon) on Apr 12, 2006 at 17:46 UTC

    I find this very very odd, but try adding a 'use Class::DBI;' call in the main script that you are calling Class::DBI::Loader from.

    From what I can tell, Class::DBI::mysql's call to use base 'Class::DBI' isn't use()ing Class::DBI at all -- but I thought use base was anologous to use()ing the module and then setting @ISA appropriately.

    I might just release a new Class-DBI-Loader distro with a use Class::DBI call up front

      You win the prize! My use statements looks like:

      use strict; use warnings; use Data::Dumper; use Class::DBI; use Class::DBI::Loader;

      And now everything works fine. Is this a bug should someone be notified?

      Thanks,

Re^3: Class::DBI::Loader problems
by Herkum (Parson) on Apr 12, 2006 at 17:18 UTC
    If you are using CPAN or PPM, you can trying seeing a report of updatable modules. Maybe you can see if there are some Class::DBI modules that can be "updated".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found