Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 Herkum (Parson) on Apr 12, 2006 at 13: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".
Re^3: Class::DBI::Loader problems
by lestrrat (Deacon) on Apr 12, 2006 at 13: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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542882]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.