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: "McCarthy, John" <JMcCarthy at citistreetonline dot com>
Subject: RE: Change in Sybase Home Directory
Date: Mar 21 2005 9:08PM

Thanks Peter,

Here is the output from chatr:
         shared library 
         shared library dynamic path search:
             SHLIB_PATH     disabled  second 
             embedded path  disabled  first  Not Defined
         shared library list:
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/local/sybase/lib/
             dynamic   /usr/lib/libm.2
         shared vtable support disabled
         static branch prediction disabled
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         third quadrant global data space disabled
         data page size: D (default)
         instruction page size: D (default)
         nulptr references disabled

It seems that SHLIB_PATH is not enabled.  If I rebuild the Sybperl stuff, is there a config option that would enable SHLIB_PATH?

By the way, in both our Sybase 12.0 and 12.5.3 directories, we have added links for lib and bin so that the references like /usr/local/sybase/lib/ do actually resolve correctly to OCS-12_5/lib and ASE-12_5/bin.



-----Original Message-----
From: []
Sent: Monday, March 21, 2005 3:42 PM
To: McCarthy, John;
Subject: Re: Change in Sybase Home Directory

Hi John,

  > The "" and files that cannot be loaded do exist 
with the proper
 > permissions. Here is " ls -l " for the file:
  > -r-xr-xr-x 1 root sys 159744 Jun 29 2000 
  > Is this behavior expected when changing the location of the Sybase 
  > We were able to solve this problem (for now) by resetting the link 
back to its
 > prior value. Is there any other way to resolve this problem?

  The "No such file or directory" error message is related to the sybase 
ocs libs themselfs not
which is
  just what glues them into perl. If you run ldd 
  it should give the same error message. You need to run chatr $file to 
see where thinks the sybase libs are. chatr
  will also tell you whether the location of the sybase libs is hard 
coded or if SHLIB_PATH is enabled. If shlib path is enabled
  you should be able to get things working by adding the directory the 
12.5.3 libs are in to the SHLIB_PATH environmental
  variable. After doing this perl should/could/may work. If not then its 
probably easiest to just recompile and link your perl modules.