X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49CE2E49.9070408@gmail.com> Date: Sat, 28 Mar 2009 14:03:53 +0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Win32::ODBC fails to load in perl. References: <3F513B52-C581-4FB4-B2CF-0022384FE511 AT jenika DOT com> In-Reply-To: <3F513B52-C581-4FB4-B2CF-0022384FE511@jenika.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com matthew@ wrote: > The following simple perl script. > > #!/usr/bin/perl > > use Win32::ODBC; > > When run results in: > > Can't load > '/usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll' > for module Win32::ODBC: No such file or directory at > /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm line 201. > at ./a line 3 > Compilation failed in require at ./a line 3. > BEGIN failed--compilation aborted at ./a line 3. Yep, confirmed. > This is the actual file: > ls -al /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll > -rwxr-xr-x+ 1 Administrator Users 189952 Feb 16 2008 > /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll It appears to lack a couple of supporting DLLs: $ cygcheck /usr/lib/perl5/vendor_perl/5.10/i686-cygwin/auto/Win32/ODBC/ODBC.dll F:\cygwin-1.7\lib\perl5\vendor_perl\5.10\i686-cygwin\auto\Win32\ODBC\ODBC.dll C:\WINNT\system32\KERNEL32.dll C:\WINNT\system32\NTDLL.DLL F:\cygwin-1.7\bin\cygwin1.dll C:\WINNT\system32\ADVAPI32.DLL C:\WINNT\system32\RPCRT4.DLL cygcheck: track_down: could not find cygiodbc-2.dll cygcheck: track_down: could not find cygiodbcinst-2.dll F:\cygwin-1.7\bin\cygperl5_10.dll F:\cygwin-1.7\bin\cygcrypt-0.dll According to the package search, these don't exist anywhere in the distro. I found an announcement posting for perl-libwin32 that says "To build from source you will need the libiodbc package, and apply a small patch:" http://www.cygwin.com/ml/cygwin-announce/2008-06/msg00022.html so with a bit of luck you should be able to build yourself a copy quite easily. cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/