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: John_Erjavec at CARGILL dot COM
Subject: Re: SYBASE variable
Date: Sep 10 1998 5:35PM

     Try wrapping the code setting the environment in a BEGIN block, like 
     so:
     
     BEGIN { $ENV{SYBASE} = "/usr/local/sybase/prod"; }
     
     That should help.
     
     -JEV
     John Erjavec V
     DBA, Cargill, Inc.
     john_erjavec@cargill.com


______________________________ Reply Separator _________________________________
Subject: SYBASE variable
Author:  murugaiy (murugaiy@ncsa.uiuc.edu) at mtka-unix-mime
Date:    9/10/98 9:33 AM


     
     
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/ncsa.uiuc.edu/packages/p
erl/perl5.004/SunOS_5.4/lib/sun4-solaris/5.004/DynaLoader.pm line 172.
     
     
------------------------------------------------------------------------- 
Natarajan Murugaiyan(Ravi)              Phone   (217) 333 - 1112 
Alliance Information Management         Email   murugaiy@ncsa.uiuc.edu 
Room 125, 2301 Fox Drive
NCSA, University of Illinois at Urbana/Champaign