in reply to sybase librairie on windows

  1. Download and install FreeTDS Windows package.
  2. Launch CPAN shell and type 'install DBD::Sybase'.
  3. You will get an error. Close CPAN shell.
  4. Open command prompt and go to Strawberry root directory and then to cpan\build\DBD-Sybase-1.15-xxxxx. For example: 'cd c:\strawberry\cpan\build\DBD-Sybase-1.15-2Rg2y7'.
  5. Set SYBASE variable to your FreeTDS installation directory. For example, if FreeTDS is installed into 'c:\freetds', type 'set SYBASE=c:\freetds'.
  6. Open Makefile.PL in editor, comment out following lines:
    if ($^O =~ /win/i) { @libdir = ( 'dll' ); } <//c> </li><li>Replace line: <c> "-L$SYBASE/lib -llibct.lib -llibcs.lib -llibtcl.lib -llibcomn.lib -lli +bintl.lib -llibblk.lib $attr{EXTRA_LIBS} -lm";
    with:
    "-L$SYBASE/lib -llibct.a -llibeay32.a -lssleay32.a $attr{EXTRA_LIBS} - +lm";
  7. Close Makefile.PL.
  8. Run 'dmake'.
  9. Run 'dmake install'.