jedikaiti has asked for the wisdom of the Perl Monks concerning the following question:
OK, guys I am having issues with the DBD::Sybase module. I'm running Strawberry Perl on WinXP, Perl version 5.10.1. I have a program (written by someone else) which requires the DBD::Sybase module. Got that installed (using CPAN), no apparent problems. But when I try to run the program I get the error:
Can't locate DBD/Sybase.pm in @INC (@INC contains: . db /glory/mu/tool +s/lib C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberr +y\perl\vendor\lib .) at dbUpdate.pl line 17.
A quick google search leads me here: What to do when Perl modules aren't in their normal locations. A quick search of my machine finds Sybase.pm in 2 directories: C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW and C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW\blib\lib\DBD. So I add these 3 lines to dbUpdate.pl:
use lib 'C:\strawberry\cpan\build'; use lib 'C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW\blib\lib'; # So Perl can find the DBD::Sybase module
Now I get a different error:
Can't locate loadable object for module DBD::Sybase in @INC (@INC cont +ains: C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW\blib\lib C:\str +awberry\cpan\build . db /glory/mu/tools/lib C:/strawberry/perl/lib C: +/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at dbUpdat +e.pl line 20.
I really don't know what, exactly, it wants, or where to go from here. Help, please?
Here's the actual code: (or rather, the start of it)
#!/gendat2/proj/bin/perl #{insert 10 lines of comments here} use strict; # Restrict unsafe constructs. use lib 'C:\strawberry\cpan\build'; use lib 'C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW\blib\lib'; # So Perl can find the DBD::Sybase module use Getopt::Long; # Command line option parser. use oasisLib; # Common functions. use DBI; # Database interface. use DBD::Sybase; # Sybase-specific module. use Data::Dumper; # Dumps perl data structures. use FileHandle; # File I/O support. use Symbol; # Support for using variables as variable names. U +ber cool. use Data::Compare; # Compares perl data structures.
Swiss Army Nerd
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can't locate loadable object for module DBD::Sybase
by moritz (Cardinal) on Apr 30, 2010 at 15:52 UTC | |
by jedikaiti (Hermit) on Apr 30, 2010 at 16:23 UTC | |
by moritz (Cardinal) on Apr 30, 2010 at 16:31 UTC | |
by Anonymous Monk on May 01, 2010 at 03:55 UTC | |
by jedikaiti (Hermit) on Apr 30, 2010 at 15:58 UTC |