Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

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/tools/lib C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\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 contains: C:\strawberry\cpan\build\DBD-Sybase-1.10-xUBkiW\blib\lib C:\strawberry\cpan\build . db /glory/mu/tools/lib C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .) at dbUpdate.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.

Kaiti
Swiss Army Nerd

In reply to Can't locate loadable object for module DBD::Sybase by jedikaiti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (4)
    As of 2015-07-04 05:25 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (57 votes), past polls