ERROR - Sybase.so libct.so.4 errors

Error Message:

install_driver(Sybase) failed: Can't load '/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: libct.so.4: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203.
at (eval 27) line 3
Compilation failed in require at (eval 27) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./check_mssql line 268

Things to try...

  • Edit /etc/ld.so.conf.d/local.conf and add "/usr/local/lib".
  • Create a sym link: "ln -s /usr/local/lib/libct.so.4 /usr/lib/libct.so.4"

I had run and "updatedb" and did a "locate libct.so.4" and located the file in the /usr/local/lib directory.  However for some reason, it was complaining the file was missing.  Eventually I did an "ldd /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/DBD/Sybase/Sybase.so" and it said the file was missing.  On several occassions I traced it back to looking in /usr/local and not checking /usr/local/lib.  Easiest fix is usually the symlink.  In this case, that did the trick.