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: "Brown, Jordan" <jordan dot brown at jnli dot com>
Subject: RE: libsybunic64.so - Error connecting. ASE 15.0, OpenSuSE 10.3 x64
Date: Jan 24 2008 9:28PM

Michael,

Thank you soooooo much!  You are awesome... 

I did exactly what you said, and now the script runs perfectly!

I've been beating my head against this one for so long...

Thank You!

Jordan Brown
Programmer OJT
Jackson


-----Original Message-----
From: owner-sybperl-l@peppler.org [mailto:owner-sybperl-l@peppler.org]
On Behalf Of Michael Peppler
Sent: Thursday, January 24, 2008 4:18 PM
To: sybperl-l@peppler.org
Subject: Re: libsybunic64.so - Error connecting. ASE 15.0, OpenSuSE 10.3
x64

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/Sybas
e/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