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

Hi,

Am trying to put together a script to automate the extraction of some data from an oracle db using the DBI and DBIx::Dump modules. The DBI module works fine, but the DBIx::Dump module isn't being found. I'm using windows.

Error Message: Can't locate DBIx/Dump.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at datadump.pl line 7. BEGIN failed--compilation aborted at datadump.pl line 7.

What i've tried: I've tried installing using ppm, and using :perl -MCPAN -e shell" then "install Data::Dump" - both seemed to work without errors. I've also made sure the dependent modules are installed, and have tried adding the path to the dump.pm module to env. variable "path".

Any help would be appreciated!

Thanks, Joe

Replies are listed 'Best First'.
Re: Can't locate DBIx::Dump
by moritz (Cardinal) on Sep 03, 2010 at 17:19 UTC
    Installing Data::Dump doesn't help if you actually load DBIx::Dump.

    Also module loading doesn't depend on the path environment var, but on @INC. See perlrun for ways to manipulate it.

    Perl 6 - links to (nearly) everything that is Perl 6.

      "Installing Data::Dump doesn't help if you actually load DBIx::Dump."

      Thanks for the reply. I'm not sure what you're saying here though - that i've loaded the wrong module? The module I wish to use seems to be the 1 I installed.

      Looking at perlrun and perldoc lib, i've tried variations on "use lib LIST;" and "use lib 'C:\Perl\lib\Data';", but I still get the same issue.

        Well, in a word, yes. If you need to use DBIx::Dump you should install DBIx::Dump, not another module.

        Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

        Additionally pushing the path to @INC doesn't solve the issue:

        Can't locate DBIx/Dump.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib . C:/Perl/lib/Data) at datadump.pl line 12.