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
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.