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: [SPAM] Question on sybperl etc
Date: May 26 2007 8:57AM

William Bell wrote:
> Hi Rob,
> I thought I have it compiled ok.... It compiled and all of the tests 
> succeeded so I went ahead with "make install"... I am just testing a 
> simple "pubs2" perl script and am getting an error....It almost seems 
> like I am missing an environment variable or something...
> The error is:
> install_driver(Sybase) failed: Can't load 
> '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Sybase/' 
> for module DBD::Sybase: : cannot open shared object file: No 
> such file or directory at 

That one's fairly easy to fix.

You need to have LD_LIBRARY_PATH set correctly, or add the 
$SYBASE/$SYBASE_OCS/lib path to /etc/ file.

You may also need to "fix" the SElinux settings, depending on how your 
linux box is set up (if the SElinux settings are "strict" then shared 
libraries can only be loaded from specific directories, IIRC).

Michael Peppler           -                 Peppler Consulting SaRL      -        
Sybase DBA/Developer      -   TeamSybase:
Sybase on Linux FAQ       -