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: Re: libsybunic64.so - Error connecting. ASE 15.0, OpenSuSE 10.3 x64
Date: Jan 24 2008 9:17PM

Brown, Jordan wrote:
> Hello Everyone,
>  
> I'm having trouble getting DBD::Sybase to work.



> When I run a Perl script to connect to the database, it crashes at this 
> line:  "require DBD::Sybase;"
>  
> With this error:
>  
> Can't load 
> '/usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Sybase/Sybase.so' 
> for module DBD::Sybase: libsybunic64.so: cannot open shared object file: 
> No such file or directory at 
> /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230. 
> at ./MSKdbconnect.pl line 34 Compilation failed in require at 
> ./MSKdbconnect.pl line 34.
> (P1 )

You can do various things.

You can add /opt/sybase/OCS-15_0/lib to the default lib directory via 
the /etc/ld.so.conf file (run ldconfig after updating the ld.so.conf file).

Or edit Apache's environment (in general in /etc/httpd/conf/httpd.conf 
where you can add something like

SetEnv LD_LIBRARY_PATH=/opt/sybase/OCS-15_0/lib

Michael
-- 
Michael Peppler           -                 Peppler Consulting SaRL
mpeppler@peppler.org      -                  http://www.peppler.org
Sybase DBA/Developer      -   TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ       -   http://www.peppler.org/FAQ/linux.html