I have just installed Michael Peppler's "sybperl" module(s) as well as the
standard DBI & DBD::Sybase modules on top of a standard ActiveState Perl
installation. The problem is that when I try to run scripts that include any
of the following lines in it:

use Sybase::CTlib; or
use Sybase::DBlib; or
use DBI / DBD::Sybase etc

I get the following error messages:

C:\OLA_DB~1\PERLST~1>perl -d ola_sybperl_exampl.pl
Can't load 'C:/Perl/site/lib/auto/Sybase/CTlib/CTlib.dll' for module
Sybase::CTlib: load_file:The specified module could not be found at
C:\Perl\lib/DynaLoader.pm line 206.
Compilation failed in require at ola_sybperl_exampl.pl line 5.
BEGIN failed--compilation aborted at ola_sybperl_exampl.pl line 5.

Where line 5 refers to lines containing entries like "use Sybase::CTlib"
etc. Could there be something elase missing from my environment? I already
have $SYBASE set in the script as well as in my system environment / path.
Here is an extract from the script:

use strict;

use Sybase::CTlib;    <<<<<<<<<<<<<<<<<<=================not getting past
here !!!

BEGIN {
        $ENV{SYBASE} = 'c:\SYBASE1192';
}

ct_callback(CS_CLIENTMSG_CB, \&msg_cb);
ct_callback(CS_SERVERMSG_CB, "srv_cb");
$uid = 'sybadmin'; $pwd = 'pegasus'; $srv = 'CSO_SYB_KINBANE';

$X=new Sybase::CTlib 'user', 'pwd', 'srv';  
$X = Sybase::CTlib->ct_connect($uid, $pwd, $srv);

$X->ct_execute("select name from master..sysdatabases");

   while(($rc = $X->ct_results($restype)) == CS_SUCCEED) {
        next if($restype == CS_CMD_DONE || $restype == CS_CMD_FAIL ||
                $restype == CS_CMD_SUCCEED);
        if(@names = $X->ct_col_names()) {
             print "@names\n";
        }
        if(@types = $X->ct_col_types()) {
             print "@types\n";
        }
        while(@dat = $X->ct_fetch) {
             print "@dat\n";
        }
    }
    print "End of Result Set\n" if($rc == CS_END_RESULTS);
    print "Error!\n" if($rc == CS_FAIL);


Is this familiar to anyone out there??? I will very much appreciate somene
helping out on this. Thanks very much.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
Ola Omidiran 
Sybase DBA 
FIL - Technical Services (rdbms)
Fidelity Investments 
* Internal      8 724 7757 
* External      01737 837 757 
E-mail : [EMAIL PROTECTED] 
Fidelity Investments International, Fidelity Investment Services Limited,
Fidelity Pensions Management and Financial Administration Services Limited
(a Fidelity Group company) are all regulated in the UK by the FSA and have
their registered offices at Oakhill House, 130 Tonbridge Road,
Hildenborough, Tonbridge, Kent TN11 9DZ. Tel 01732 361144. Fidelity only
gives information on products and does not give investment advice to private
clients based on individual circumstances. Any comments or statements made
are not necessarily those of Fidelity. The information transmitted is
intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. If you received this in
error, please contact the sender and delete the material from any computer.
All e-mails sent from or to Fidelity may be subject to our monitoring
procedures.

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to