perleager has asked for the wisdom of the Perl Monks concerning the following question:

Hey,

I'm on a Windows machine using ActiveState.

I installed DBI 1.39 on to the machine and it said it was successful. Now in a script where I call DBI, it automatically seems to die.

Even when I take the "or die" part to "or print", it still dies.

When I try to execute from the command line, it says sytax ok and no problems with DBI or anything. (previously when I didn't have DBI installed, the perl interp would give me a error saying can't locate DBI.pm)

I even tried using the DBI->trace, and it still doesn't print a error message.

I also installed DBD:ODBC module incase that could be the problem.

Anyone have an idea on what my problem may be?

Anthony


---------------------------------

Hey thanks for the help. I got this working properly for anyone who might come across this issue, what I forgot was installing the DBD-mysql driver for DBI. :)

Replies are listed 'Best First'.
Re: DBI and ActiveState Perl
by CountZero (Bishop) on Jan 16, 2004 at 22:42 UTC
    How did you install DBI.pm? Did you use the PPM from ActiveState? What DBD are you using? (and how did you install that?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: DBI and ActiveState Perl
by Anonymous Monk on Jan 16, 2004 at 21:40 UTC

    Some code would be helpful.

    If it isn't too much trouble for you, make a minimum test script that fails and submit it. Thanks.

Re: DBI and ActiveState Perl
by Sandy (Curate) on Jan 16, 2004 at 21:39 UTC
    Can you give us your code so that it would be easier to guess what the problem is?

    Sandy

Re: DBI and ActiveState Perl
by Anonymous Monk on Jan 17, 2004 at 02:50 UTC
    How does it die? (death is "blah blah blah died at line blah")