DBD::Sybase and Solaris

Beatnik on 2006-02-22T17:41:07

I had some problems getting DBD::Sybase up and running on Solaris 9. I was using it in a CGI script on a proprietary framework and the environment variables seemed broken. I got the following error:

install_driver(Sybase) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.0/
sun4-solaris/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
perl: fatal: libgcc_s.so.1: open failed: No such file or directory at
I found libgcc_s.so.1 in my /usr/local/lib and that path was added to LD_LIBRARY_PATH. I tried recompiling with extra parameters, I tried setting the environment variable explicitly in the script but nothing seemed to work. I then looked back at my development setup (where it DID work) and found out that libgcc_s.so.1 was in /usr/lib on that machine. I quickly created a symlink and tata! It worked!

Small sidenote: If you're compiling DBD::Sybase for Netcool, don't forget to fetch the Netcool patches for DBD::Sybase and FreeTDS from Netcool Users.

Extra sidenote: If you're running Netcool in a redundant setup, define an actual database in your DBI connect statement and not the virtual database name.