install_driver(Sybase) failed: Can't load '' for module DBD::Sybase

install_driver(Sybase) failed: Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Sybase/' for module DBD::Sybase: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/ line 229.
 at (eval 2) line 3
Compilation failed in require at (eval 2) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at line 9

This is the error I ran into yesterday in one of my Perl scripts. This script has been in production since December 2007 with no changes. For some reason, the script magically started failing. The error obviously indicates a missing library ( In fact, there were two missing libraries:

$ ldd /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Sybase/ => not found => not found => /lib/ (0x00af5000) => /lib/tls/ (0x0026f000) => /lib/tls/ (0x0052d000)
    /lib/ => /lib/ (0x002ff000)

These libraries ( and are provided by FreeTDS. Apparently, someone had installed a newer version of the FreeTDS library and the old libraries were lost. The solution was to re-install DBD::Sybase (I also upgraded to the latest version while I was at it):

$ cd DBD-Sybase-1.10
$ SYBASE='/usr' perl Makefile.PL
$ make
# make install
$ ldd /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Sybase/ => /usr/lib/ (0x0032a000) => /usr/lib/ (0x00432000) => /lib/ (0x00a9e000) => /lib/tls/ (0x0052f000) => /lib/tls/ (0x00111000)
    /lib/ => /lib/ (0x009b0000)

Now, I'm using the latest libraries and everything is back to normal.

My Bookshelf

Reading Now

Other Stuff