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: ct_init() error, looking for ctlib.loc
Date: May 17 1999 8:07PM

Robert Bresner writes:
 > Hi there...
 > 
 > Open Client Message:
 > Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (4) NUMBER = (118)
 > Message String: ct_init(): Unable to find file
 > /usr/local/sybase11/locales/us_english/iso_1/ctlib.loc
 > Sybase::CTlib initialize: ct_init() failed at
 > /usr/local/lib/perl5/sun4-solaris-ultra/5.00404/DynaLoader.pm line 185.
 > BEGIN failed--compilation aborted at ./psql.pl line 10.
 > 
 > Line 10: use Sybase::CTlib;
 > 
 > 
 > I get this error message trying to run a perl script using
 > Sybase::CTlib.
 > The real problem line, here, is this:
 >   Message String: ct_init(): Unable to find file
 > /usr/local/sybase11/locales/us_english/iso_1/ctlib.loc
 > The path leading to the ctlib.loc file is incorrect. And Asking around
 > here, 
 > I keep hearing that if I set some environment variable, then CTlib will
 > get the path
 > to the file from the environment variable. But no one can tell me
 > what that variable should be, or even if that's the problem..
 > So, I turn to the experts. 

#!/usr/bin/perl -w

use strict;

BEGIN {
   $ENV{SYBASE} = "/correct/path/to/sybase";
}

use Sybase::CTlib;

etc...

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com