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

I keep getting this error, even after I import the module.

Can't locate My/MySqldb.pm in @INC (@INC contains:

I also get this error in another users profile:

Can't locate Net/SSH/Perl.pm in @INC (@INC contains:

The second goes past the My/MySqldb.pm, so the second profile knows where to locate the MySQLdb.

How can I get all users to see all the modules? Here is the first lines of my script

use My::MySqldb; # CPAN download

use Data::Dumper; # Standard module

use Net::SSH::Perl; # CPAN download

use Getopt::Long; # Standard module

use Time::Local; #Standard module

my %option = ();

&GetOptions( \%option, "help|h",

"dbg|d",

"dbgh|dh");

local $dbg = $option{'dbg'} || 0;

local $dbgData = 1;

local $dbgssh = 2;

my $db = 'joe';

my $user = 'joe';

I guess my question would be, how can i import the MySQLdb module globally so that all users using the script I created can use it?

Replies are listed 'Best First'.
Re: My/MySqldb.pm Module porblem
by roboticus (Chancellor) on Feb 09, 2009 at 21:10 UTC
    wjwrightii:

    You might want to give us a few more lines ... that's not enough to help you out!

    ;^)

    ...roboticus
Re: My/MySqldb.pm Module porblem
by Anonymous Monk on Feb 10, 2009 at 02:18 UTC