windows - Why doesn't Win32::ODBC find the ODBC.dll under Perl 5.10 and Cygwin? -


I'm trying to use Pearl ODBC to connect to a Microsoft SQL Server. My problem is that Perl 5.10.0 is having problems using the Win32 ODBC driver.

If I run Perl Shell and execute this one line then I get errors.

  Use Win32 :: ODBC; Module '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll' can not be loaded for Win32 :: ODBC: such as on / usr / lib / perl5 File or directory is not 5.10 / i686-signin / diuoder PM line 201.  

I have verified that the DLL file exists.

I have installed the sync packages:

  • perl (5.10.0-5)
  • perl-libwin32 (0.28-2)

This one appears. Hold, apply the following patches, create and install:

  diff -ub libiodbc-3.52.6 / include / iodbcunix.h.orig --- libiodbc-3.52.6 / include / Iodbcunix .h.orig 2006-01-26 9: 50: 59.000000000 +0000+++ Libibasi-3.52.6 / included / iodbcunix.h 2007-12-24 19: 33: 57.859375000 +0000 @@ -124,6 + 124 , 7 @ @ # (OBSOLTUVINWOSOHEEEES) typed unsigned four bytes; #endif + # ifndef WIN32TypeIf unsigned shortWord; Typedef unsigned int DWORD; Typingfaces Four * LPSR; @@131.6 +132,7 @@ typed wchar_t * LPWSTR; Typingfont wchar_t * LPCWSTR; Typing Dividends * LPDword; + # Andif #if! Defined (BOOL) & amp; Amp; ! Defined (_OBJC_OBJC_H_) typedef int BOOL;  

Update: People from Saigwin, but it's several months old. If it is too long to wait, you can make a fake at this time:

  #! / Bin / bash # libiverbc build directory runs gcc -shared -o cygiodbc-2.dll \ -Wl, --out-implib = libcygiodbc-2.dll.a \ -Wl, - export-all-symbols \ -w , - Enable-auto-import \ -Wl, - Full-archive Iodbc / .libs / libiodbc.a \ -Wl, - No-entire-archive Gcc -shared -o cygiodbcinst-2.dll \ - Wl, - Out- Inibb = libcygiodbcinst-2.dll.a \ -Wl, - Export-all-symbols \ -Wl, - Enable-auto-import \ -Wl, - Full-archive Iodbcinst / .libs /libiodbcinst.a \ -Wl, - No-whole-archive cp cygiodbc {, inst} -2.dll / bin  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -