Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Kurt A dot Seiffert" <seiffert at indiana dot edu>
Subject: Re: SYBASE variable
Date: Sep 10 1998 6:17PM

We ran across this problem when we had compiled Syb-perl against 11.1
Open-client included with Sybase 11.5, but then tried to use it where
our SYBASE variable pointed at a 10.02 Open-client as with 11.0x.

For instance, compile sybperl with SYBASE=/opt/sybase/sybase115.

Then run sybperl with SYBASE=/opt/sybase/sybase1102.

We got the same error message. The reason had to do with the 11.1
Open-Client having a seperate directory for the localization files. If
you examine the 11.1 directory structure you can spot the difference. I
think we were also able to patch this by placing the a link to the 11.1
localization files in the 10.02 directory tree. I don't have the details
in front of me. 

Of course the other option is to recompile sybperl using the 10.02
libraries. That seems to work fine with 11.1.


Natarajan (Ravi) Murugaiyan wrote:
> I have trouble getting a ctlib perl script to recognize SYBASE
> environment variable:
> #!/usr/bin/perl
> $ENV{SYBASE} = "/usr/local/sybase/prod";
> use Sybase::CTlib;
> produces following error message when run:
> The context allocation routine failed when it tried to load localization files!!
> One or more following problems may caused the failure
> Your sybase home directory is /usr/local/sybase. Check the environment variable SYBASE if it is not the one you want!
> Cannot access file /usr/local/sybase/locales/locales.dat
> Sybase::CTlib initialize: cs_ctx_alloc() failed at /afs/ line 172.
> -------------------------------------------------------------------------
> Natarajan Murugaiyan(Ravi)              Phone   (217) 333 - 1112
> Alliance Information Management         Email
> Room 125, 2301 Fox Drive
> NCSA, University of Illinois at Urbana/Champaign

Kurt A. Seiffert                                   Indiana University
Decision Support Integration Analyst               Bloomington, IN 47408
University Information Technology Services         (812) 855-5089
"A mind is not a vessel to be filled, but a lamp to be lit."