RE: libsybunic64.so - Error connecting. ASE 15.0, OpenSuSE 10.3 x64

"Brown, Jordan" <[email protected]> Thu, 24 Jan 2008 16:28:03 -0500
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <7A3629E2A674564A985F3C5E78428637088C5B@MAILWP8A.jacksonnational.com>
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: [email protected] [mailto:[email protected]]
On Behalf Of Michael Peppler
Sent: Thursday, January 24, 2008 4:18 PM
To: [email protected]
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.

<snip>

> 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
[email protected]      -                  http://www.peppler.org
Sybase DBA/Developer      -   TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ       -   http://www.peppler.org/FAQ/linux.html