w0rf has asked for the wisdom of the Perl Monks concerning the following question:
I ran a search for DBI.pm on my local machine and it finds the following:$ perl -e 'use DBI'; Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.10/i686-cygwin /usr/lib/perl5/5.10 /usr/lib/perl5/site_perl/5.10/i686-cygwin /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10/i686-cygwin /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at -e line 1.
Does that fact that DBI.pm is in C:\cygwin\lib\perl5\site_perl\5.8\cygwin instead of \usr\lib\perl5\site_perl\5.8 (without specifying cygwin) really matter - doesn't @INC drill down recursively into the folders?C:\cygwin\home\me\.cpan\build\DBI-1.601\blib\lib C:\cygwin\home\me\.cpan\build\DBI-1.601 C:\cygwin\lib\perl5\site_perl\5.8\cygwin C:\cygwin\home\me\.cpan\build\DBI-1.601\blib\lib\Bundle C:\cygwin\home\me\.cpan\build\DBI-1.601\lib\Bundle C:\cygwin\lib\perl5\site_perl\5.8\cygwin\Bundle
Cygwin has a different group owner and slightly different permissions but nothing really bad right?me@me-cmp /usr/lib/perl5/site_perl/5.8 $ ll total 8 drwxrwxrwx+ 9 me Users 4096 Apr 13 21:05 . drwxrwxrwx+ 4 me Users 0 Jul 21 23:20 .. drwxr-xr-x+ 3 me Power Users 0 Jan 9 2008 File drwxr-xr-x+ 2 me Power Users 0 Jan 9 2008 Number drwxr-xr-x+ 2 me Power Users 0 Apr 13 21:04 OLE drwxr-xr-x+ 2 me Power Users 0 Apr 13 21:04 Parse drwxr-xr-x+ 3 me Power Users 0 Apr 13 21:05 Spreads drwxr-xr-x+ 2 me Power Users 0 Jan 9 2008 Text drwxrwxrwx+ 7 me Users 4096 Jul 21 23:18 cygwin
Seems to me that for some reason some folders and files that are there can't be found - is this a permissions thing?me@me-cmp /usr/lib/perl5/site_perl/5.8/cygwin $ perl -e 'use DBI'; Can't load './auto/DBI/DBI.dll' for module DBI: No such file or direct +ory at /usr/lib/perl5/5.10/i686-cygwin/DynaLoader.pm line 201. at DBI.pm line 266 BEGIN failed--compilation aborted at DBI.pm line 266. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate DBI.pm @INC (Cygwin + MySQL)
by moritz (Cardinal) on Aug 25, 2008 at 20:00 UTC | |
by Anonymous Monk on Aug 25, 2008 at 22:56 UTC | |
by Anonymous Monk on Nov 30, 2008 at 16:38 UTC |