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

Michael Peppler <[email protected]> Thu, 24 Jan 2008 22:17:33 +0100
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Organization Peppler Consulting SaRL
Message-ID <[email protected]>
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/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
[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