Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Can't locate loadable object for module DBD::Sybase

by jedikaiti (Hermit)
on Apr 30, 2010 at 15:43 UTC ( [id://837799]=perlquestion: print w/replies, xml ) Need Help??

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.

Kaiti
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

    It looks like the install did actually fail -it's a build directorie, not an install directory.

    Try to go to that directory, run

    perl Makefile.PL make test

    and see if there are any errors. If not, continue with make install.

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

      So I tried, and here's what happens:
      perl Makefile.pl generates the following notes:

      Note (probably harmless): No library found for -llibct.lib Note (probably harmless): No library found for -llibcs.lib Note (probably harmless): No library found for -llibtc1.lib Note (probably harmless): No library found for -llibcomn.lib Note (probably harmless): No library found for llibint1.lib Note (probably harmless): No library found for -llivblk.lib Using DBI 1.611 (for perl 5.01001 on MSWin32-x86-multi-thread) install +ed in C:/strawberry/perl/site/lib/auto/DBI/ Writing Makefile for DBD::Sybase

      dmake test returns a lot of lines like:
      dbdimp.o:dbdimp.c:(.text+0xea1e): undefined reference to 'ct_dynamic'
      only the hex after ".text" and what the undefined reference is to change on each line.

      That is followed by:

      collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\DBD\Sybase\Sybase. +dll'

      I went ahead and tried reinstalling via CPAN, and got the same results. (Wanted to make sure I hadn't inadvertently ham-fisted something that goofed it up.)

      Crapadoodle. Where do I go from here?

      Thanks!

      Kaiti
      Swiss Army Nerd
        Note (probably harmless): No library found for -llibct.lib

        Assume these warnings are not harmless, and install the libraries it's looking for.

        Perl 6 - links to (nearly) everything that is Perl 6.
      Well, darn it! Will do - thanks!
      Kaiti
      Swiss Army Nerd

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://837799]
Approved by AnomalousMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found