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: Mark Conover <markc at celtech dot com>
Subject: Re: Sybperl/CGI error - cs_ctx_alloc()
Date: Oct 3 1997 12:53AM

I found the problem:

Directory /usr/local/sybase/locales did not 
have world read/execute permission.  

-Mark



Michael Peppler wrote:
> 
> Mark Conover wrote:
> >
> > I recently installed Sybperl (ver 2.07, static binding) on my Linux
> > (RedHat 2.0.30) workstation.
> >
> > Using CTlib, connections to remote Sybase servers have been successfully
> > created, querying like crazy.
> >
> > My first attempts at incorporating sybperl in a CGI program are
> > causing a bit of grief.  As soon as the "use Sybase::CTlib" is
> > interpreted, I get a DynaLoader error.  Apparently cs_ctx_alloc() is
> > a very unhappy camper.
> >
> > Noting the FAQ reference to LD_LIBRARY_PATH, I double checked to
> > see if this was set in my normal shell. (It isn't.)
> >
> > I'll include the header of my program:
> >
> > ----------------------------------------
> > #!/usr/bin/perl
> >
> > use CGI::Carp qw(fatalsToBrowser);
> > use CGI qw(:standard);
> > use Sybase::CTlib;
> >
> >
> 
> 
> 
> > Any suggestions?  If the sybperl mailing list is archived, I'd
> > appreciate
> > a steer in its direction.
> 
> The list is archived, and can be searched at
> 
> gopher://trln.lib.unc.edu:70/11gopher_root1%3A%5BSybPerl-L%5D
> 
> However,
> 
> I think that you're simply missing setting $ENV{SYBASE} in your script.
> For Sybase::CTlib this needs to be done in a BEGIN block, as in
> 
> #!/usr/bin/perl
> 
> BEGIN {
> $ENV{SYBASE} = '/usr/local/sybase';  #or wherever the interfaces file
>                                 # and locale info is located
> }
> use CGI::Carp qw(fatalsToBrowser);
> use CGI qw(:standard);
> use Sybase::CTlib;
> 
> etc...
> 
> Michael
> --
> Michael Peppler       -||-  Data Migrations Inc.
> mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler

-- 
Mark Conover
Software Engineer
Cellular Technical Services