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

On our HP unix system, we have a file name " /usr/local/sybase " that until recently was "linked" to our Sybase 12.0 directory.  After changing the link to point to our Sybase 12.5.3 directory, we get many errors from applications using Sybperl, DBlib, and/or CTlib.  Here are two examples:

----------------------------------------------- Ex. 1
				Can't load '/usr/local/apps/perl5/lib/site_perl/5.005/PA-RISC2.0/auto/Sybase/DBlib/DBlib.sl' for module Sybase::DBlib: No such file or directory at /usr/local/apps/perl5/lib/5.00503/PA-RISC2.0/DynaLoader.pm line 169.
				    at /usr/local/apps/perl5/lib/site_perl/5.005/PA-RISC2.0/Sybase/Sybperl.pm line 79
				    BEGIN failed--compilation aborted at /usr/local/apps/perl5/lib/site_perl/5.005/PA-RISC2.0/Sybase/Sybperl.pm line 79.
   BEGIN failed--compilation aborted at /share/test/export/avt10/script/process_filter_cr.pl line 81.
----------------------------------------------- Ex. 2
	Can't load '/usr/local/apps/perl-5.6.0/lib/site_perl/5.6.0/PA-RISC2.0/auto/Sybase/CTlib/CTlib.sl' for module Sybase::CTlib: No such file or
	directory at /usr/local/apps/perl-5.6.0/lib/5.6.0/PA-RISC2.0/DynaLoader.pm line 200.
	 at /share/test/import/sgt10/script/coreDBLib.pl line 373
Compilation failed in require at /share/test/import/sgt10/script/coreDBLib.pl line 373.
-----------------------------------------------

The "DBlib.sl" and CTlib.sl files that cannot be loaded do exist with the proper permissions.  Here is " ls -l " for the CTlib.sl file:
  -r-xr-xr-x   1 root       sys         159744 Jun 29  2000 /usr/local/apps/perl-5.6.0/lib/site_perl/5.6.0/PA-RISC2.0/auto/Sybase/CTlib/CTlib.sl
Is this behavior expected when changing the location of the Sybase binaries?
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?

Thanks in advance for any ideas.

John