PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: ldusadev at kestrok dot com (Rich Bailey)
Subject: NT sybperl error
Date: Oct 24 1997 10:03PM

Hi all:
I just installed perl 5.001m with the sybperl extensions onto a 75Mhz
Pentium with NT 4.0 and 16MB. It also has 

OpenClient 11.1 (32 bit). The perl binaries were obtained from Mike
Peppler's home page.
Perl itself works, but the sybperl stuff bombs out. Here is the script:

#
#       @(#)ct_sql.pl   1.2     8/7/95
# Using the special one step query routine ct_sql().
 
use Sybase::CTlib;      # COMPILE FAILS HERE#
 
$d = new Sybase::CTlib axis, passwd, rscrd;
 
$ref = $d->ct_sql("select * from ftbiggs..CAMPADDR", \&print_sql );
 
sub print_sql {
    print "@_\n";
}

I get the following error:
C:\PROGRAMS\perl5\src>perl ct_sql.pl

Can't find loadable object for module Sybase::CTlib in @INC at C:\PROGRAMS\perl5
\lib/Sybase/CTlib.pm line 867
BEGIN failed--compilation aborted at ct_sql.pl line 8.

C:\PROGRAMS\perl5\src>
 
I tried to move the __END__ to after the ct_sql sub. I put & in front of all
occurences of 'CS_SUCCEED', 'CS_ROW_COUNT',
>'CS_CMD_DONE' and 'CS_CANCEL_CURRENT' in CTlib.pm. None of this worked.
Any ideas welcome!!
Thanks,
Rich