Subject: | IO doesn't use Win32::File to install IO.DLL under cygwin |
IO.dll attempts to use "Unix" methodology to install/overwrite IO.dll
when running under Cygwin. Unfortunately, Cygwin is not Unix -- it is
running on Win32. It needs to use the Win32 install method to replace
inuse DLL's rather than requiring the user to do it manually:
....
# [test finishes]
t/io_unix..........ok
t/io_utf8..........ok
t/io_xs............ok
All tests successful.
Files=17, Tests=172, 26 wallclock secs ( 3.49 cusr + 2.29 csys = 5.79 CPU)
/usr/bin/make test -- OK
Running make install
Cannot forceunlink /usr/lib/perl5/5.8/cygwin/auto/IO/IO.dll: Permission
denied at /usr/lib/perl5/5.8/File/Find.pm line 918
make: *** [pure_perl_install] Error 13
/usr/bin/make install UNINST=1 -- NOT OK
# [ install fails due to Unix copy not working on Win32; so manually
# enter IO dir; "move" the problem DLL out of the way, and run
# the "make install" manually ]
Show quoted text
cpan> look IO
Running look for module IO
Trying to open a subshell in the build directory...
Working directory is /var/cache/CPAN/build/IO-1.2301
(2)/var/cache/CPAN/build/IO-1.2301> mv \
/usr/lib/perl5/5.8/cygwin/auto/IO/IO.dll /tmp
# [ note -- no problem moving the offending dll out of the way; I move
# it to /tmp where it will be auto-deleted if I forget; now rerun
# make install...
(2)/var/cache/CPAN/build/IO-1.2301> make install UNINST=1
Installing /usr/lib/perl5/5.8/cygwin/auto/IO/IO.dll
Installing /usr/lib/perl5/5.8/cygwin/auto/IO/libIO.dll.a
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/lib/perl5/5.8/cygwin/IO.pm
Installing /usr/lib/perl5/5.8/cygwin/IO/Dir.pm
Installing /usr/lib/perl5/5.8/cygwin/IO/File.pm
Installing /usr/lib/perl5/5.8/cygwin/IO/Handle.pm
Installing /usr/lib/perl5/5.8/cygwin/IO/Socket.pm
Installing /usr/lib/perl5/5.8/cygwin/IO/Socket/INET.pm
Unlinking /usr/lib/perl5/5.8/IO/Socket/INET.pm (shadowing?)
Installing /usr/lib/perl5/5.8/cygwin/IO/Socket/UNIX.pm
Unlinking /usr/lib/perl5/5.8/IO/Socket/UNIX.pm (shadowing?)
Writing /usr/lib/perl5/5.8/cygwin/auto/IO/.packlist
Appending installation info to /usr/lib/perl5/5.8/cygwin/perllocal.pod
# [install works/finishes]