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: Is it possible to preset the SYBASE_OCS variable?
Date: Nov 4 2004 7:47AM

On Thu, 2004-11-04 at 08:15, Christian Behrens wrote:
> > Actually at run-time you don't need the SYBASE_OCS variable, AFAIK. What
> > *is* needed is for the run-time linker ( on most systems) to find
> > the Sybase libraries. This is done either by having LD_LIBRARY_PATH set
> > correctly, by having correct entries in /etc/ or by making
> > sure that the full path of the .so files is stored in the binaries (e.g.
> > using the -R linker option on Solaris).
> Looks like editing /etc/ did it.

I'll also point out that you can't set an environment variable (such as
LD_LIBRARY_PATH) in a script and have it affect the script itself. It
can only affect child processes. So it is not possible to pre-set
anything in the environment in the sybperl source so that it will pick
up the correct libraries at run-time - such settings *have* to be made
outside of sybperl (in the parent process, or by some other linker
directive such as the file on linux systems).

Michael Peppler                              Data Migrations, Inc.             
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions -