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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re:
Date: Jul 25 2001 8:28PM

Please do not send html-only emails to these lists, thanks.

Sudha Nayak writes:

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 /home/sybase. Check the environment variable SYBASE if it is not the one you want!
Cannot access file /home/sybase/locales/locales.dat
[Wed Jul 25 18:23:54 2001] [error] [Wed Jul 25 18:23:54 2001] [Wed Jul 25 18:23:54 2001] DBD::Sybase in
itialize: cs_ctx_alloc() failed at /usr/local/lib/perl5/site_perl/5.005/i686-linux/DBD/ line 30.

Get your FREE download of MSN Explorer at
> The error message is pretty clear, I'd think. When your script runs (presumably as a CGI script) the SYBASE environment is not set, or set to point at the wrong place (in this case /home/sybase). You need to set the SYBASE env. variable to /opt/sybase (or wherever Sybase is installed on your system). With Apache this can be done with SetEnv SYBASE /opt/sybase in the httpd.conf file. Michael -- Michael Peppler - Data Migrations Inc. - - International Sybase User Group -