|
|
sybperl-l Archive
Up Prev Next
From: "Abohebeish, Eman" <Eman dot Abohebeish at disney dot com>
Subject: RE: ctlib error - fixed
Date: Nov 2 1999 9:13PM
Michael -
Thanks for the reply. I got it working - the Sybase variable in CONFIG was
pointed to openclient not sybase.
- Eman
-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Tuesday, November 02, 1999 11:41 AM
To: SybPerl Discussion List
Subject: Re: ctlib error
Abohebeish, Eman writes:
> Hi,
>
> I was hopeing someone could shed light on the error I am getting below.
I
> was able to install Perl5/Sybperl on one machine, and run the ctlib.t
test
> file just fine. When I installed Perl5/Sybperl on another UNIX box (same
> OS), I get the following error when I run ctlib.t. I know that CTlib is
> fine because I use it in my 'C' code.
Is the environment *exactly* the same for your C code as for the perl
code?
sybperl is just a thin wrapper around the CTlib API, so it should
*normally* behave the same way as a CTlib C app.
>
> Open Client Message: (In msg_cb)
> Message number: LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (1)
> Message String: ct_connect(): directory service layer: internal directory
> contro
> l layer error: There was an error encountered while binding to the
directory
> ser
> vice.
> not ok 2
> -- The supplied login id/password combination may be invalid
> Can't call method "ct_execute" on an undefined value at ctlib.t line 53.
> psoft@bandit /perl/sybperl-2.11/CTlib/t>>
>
----------------------------------------------------------------------------
> ----------------------------------------------------
>
> Here is part of the code which I modified to test ctlib.t:
>
----------------------------------------------------------------------------
> ----------------------------------------------------
> #( $X = Sybase::CTlib->ct_connect($Uid, $Pwd, $Srv, '', {LastError => 0})
)
> ( $X = Sybase::CTlib->ct_connect('USER1', 'USER1_PASS', 'DEVELOP' , '',
> {LastError => 0
> }) )
Is the DEVELOP server listed in the interfaces file? Is $SYBASE
pointing at the correct interfaces file?
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|