in reply to Re: DBD::Sybase cygwin installation failure
in thread DBD::Sybase cygwin installation failure

Hi, Thanks. Finally I am able to resolve this issue. So the installation from CPAN did not work. I did some manual change in the Makefile.PL file and I was able to install it. in Makefile.PL file of DBD::Sybase. I modified the line
} elsif($^O =~ /cygwin/) { $lib_string = "-L$SYBASE/lib -lct -lcs -lblk"; $inc_string .= " -D_MSC_VER=800"; } else {
WITH
} elsif($^O =~ /cygwin/) { $lib_string = "-L$SYBASE/lib -lct -lcs -lblk -liconv"; $inc_string .= " -D_MSC_VER=800"; } else {
So I added the "-liconv" library. THis resolved my issue. Here is a reference to the same issue. http://www.mail-archive.com/dbi-users@perl.org/msg17449.html Thanks -Ravi Prakash

Replies are listed 'Best First'.
Re^3: DBD::Sybase cygwin installation failure
by Anonymous Monk on May 22, 2013 at 17:09 UTC
    Thank you for your post, It helped me compiling the DBD::Sybase (v.1.15) with FreeTds. However, the next error I've encountered was:
    Can't find any Sybase libraries in /usr/local/lib or /usr/local/lib64 +at Makefile.PL line 155, <IN> line 44.
    I had to change
    my @libdir = ( 'lib', 'lib64' ); if ($^O =~ /win/i) { @libdir = ( 'dll' ); }
    to
    my @libdir = ( 'lib', 'lib64' ); if ($^O =~ /^win/i) { @libdir = ( 'dll' ); }
    (cygwin contains "win" , then the Makefile is looking for "dll" library subfolder, instead of "lib"/"lib64")