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

In reply to Re: sybase librairie on windows by Anonymous Monk
in thread sybase librairie on windows by sbouli

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.