Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: DBD::Sybase cygwin installation failure

by stefbv (Curate)
on Dec 31, 2009 at 08:27 UTC ( [id://815066]=note: print w/replies, xml ) Need Help??


in reply to DBD::Sybase cygwin installation failure

Check if libiconv is installed in cygwin.

Update: On my system there are 2 packages for libiconv the second is categorized as "Devel, Libs" maybe you need to install that.

  • Comment on Re: DBD::Sybase cygwin installation failure

Replies are listed 'Best First'.
Re^2: DBD::Sybase cygwin installation failure
by ravipg2004 (Initiate) on Dec 31, 2009 at 16:46 UTC
    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
      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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://815066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-19 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found