sybperl

sybperl

Post by Jeff Pogodzinsk » Sat, 20 Jun 1998 04:00:00



[ sybperl.email 1K ]
I loaded sybperl-2.09_05 on my Linux system, RH5.1, and I am getting the following
strange errors.  I have included both the OUTPUT and the SOURCE code.

Please help if you can.

Thanks.

OUTPUT:
==================================================
The available DBD drivers are: ExampleP NullP Sponge Sybase.
Use of uninitialized value at /usr/lib/perl5/site_perl/DBD/Sybase.pm line 68.
(I could not see which value was uninitialized when I ran the de*.)
Can't connect: Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (4) NUMBER = (8)
Message String: ct_connect(): network packet layer: internal net library error: Could not find addressing dictionary
Operating System Error: Operating System Error - 135554004

SOURCE:
==================================================
#!/usr/bin/perl -w

$ENV{'SYBASE'}        = "/usr/local/sybase";
$ENV{'DSQUERY'}       = "COG_DMH2_SY01";


my ($data_source)       = 'dbi:Sybase:interfaces=./interfaces:';
my ($username)          = 'sa';
my ($password)          = '';

use DBI;



#Connect to the Sybase db server.
$dbh = DBI->connect($data_source,$username,$password,"Sybase") ||
   die "Can't connect: $DBI::errstr";

$dbh->disconnect;

exit 0

 
 
 

sybperl

Post by Michael Pepple » Sat, 20 Jun 1998 04:00:00


Quote:> I loaded sybperl-2.09_05 on my Linux system, RH5.1, and I am getting the following
> strange errors.  I have included both the OUTPUT and the SOURCE code.

This is not sybperl - it's DBD::Sybase.

Quote:

> Please help if you can.

> Thanks.

> OUTPUT:
> ==================================================
> The available DBD drivers are: ExampleP NullP Sponge Sybase.
> Use of uninitialized value at /usr/lib/perl5/site_perl/DBD/Sybase.pm line 68.
> (I could not see which value was uninitialized when I ran the de*.)
> Can't connect: Open Client Message:
> Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (4) NUMBER = (8)
> Message String: ct_connect(): network packet layer: internal net library error: Could not find addressing dictionary
> Operating System Error: Operating System Error - 135554004

First - RH 5.x is not guaranteed to work. Do you have the newish Sybase
libraries
from my web page (http://www.veryComputer.com/~mpeppler) ?

Second - is the interfaces file in the correct format for Linux?

Michael
--
Michael Peppler         -||-  Data Migrations Inc.

Int. Sybase User Group  -||-  http://www.veryComputer.com/