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: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: sybase.pm
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] Sybase.pm: [Wed Jul 25 18:23:54 2001] Sybase.pm: DBD::Sybase in
itialize: cs_ctx_alloc() failed at /usr/local/lib/perl5/site_perl/5.005/i686-linux/DBD/Sybase.pm line 30.


Get your FREE download of MSN Explorer at http://explorer.msn.com
> 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. - http://www.mbay.net/~mpeppler mpeppler@peppler.org - mpeppler@mbay.net International Sybase User Group - http://www.isug.com