-1

I just installed cygwin on a new PC (fast SSD etc...) and now see several CPAN packages fail during install:

CYGWIN_NT-10.0-19044 <PC-Name> 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 Cygwin Windows 10 Enterprise Ver 10.0 Build 19044

Couldn't move <$HOME>/.cpan/build/tmp-6944/Module-Build-0.4234/t to <$HOME>/.cpan/build/Module-Build-0.4234-0/t: Is a directory; #82295? CPAN::VERSION=2.36; File::Copy::VERSION=2.39; <$HOME>/.cpan/build/tmp-6944/Module-Build-0.4234/t exists; <$HOME>/.cpan/build/Module-Build-0.4234-0/t does not exist; cwd=<$HOME>/.cpan/build/tmp-6944;

this bug is already reported, but any idea, how I still can successfully create the installation?

same steps of CPAN installation on similar, but older/slower PC worked fine.

Michi
  • 37
  • 4
  • Which version of Windows is this? Also, please show the exact steps you used to install Cygwin and which packages you installed into it before you got this problem. Then show the command you used for installing the perl module that gave you the above error. See [mcve] for more information – Håkon Hægland Aug 03 '23 at 13:59
  • I see the linked ticket's OP's `.cpan` is in a Dropbox "volume". Is your home dir a inside a Dropbox/OneDrive/etc "volume"? This problem is reminiscent of problems we have when using Tabletop Simulator from a OneDrive "volume". /// According to the ticket, someone was able to work around the problem by adding some delays (sleep calls). – ikegami Aug 03 '23 at 14:17
  • 2
    @Håkon Hægland, That info is in the ticket. `NT-10.0-19044` is a build of Win 10. (Win 11 also says 10.0, but uses builds in the 20,000s.) And the distro being installed is Module-Build-0.4234. – ikegami Aug 03 '23 at 14:24
  • ( s/ticket/question/, s/20,000s/22,000s/) – ikegami Aug 04 '23 at 16:45
  • I've tried this on Dropbox, which led to several months (no joke) of Dropbox catching up on the sync. I haven't used Dropbox seriously in about 5 years, but they had significant problems handling high rates of file churn in the covered folders. These locations effectively became unaccessible. – brian d foy Aug 04 '23 at 17:16
  • this happens e.g. for `cpan -i CPAN`, but also for any other package installation (e.g. `cpan -i Config::Tiny` etc.) In the meantime, I cleaned cygwin from the machine and installed again on an external USB-SSD - and here the installation works. Is the internal SSD "too fast"??? @Håkon Hægland: WinVersion in message cygwin installation: for this installation I used the pre-selected packages + `perl, make, gcc-core, wget` – Michi Aug 05 '23 at 21:41
  • @ikegami: installed on internal SSD. I also read about the "sleep" workaround - but I don't know how to do this - can you give me a hint, how to apply this fix? – Michi Aug 05 '23 at 23:03
  • Re "*installed on internal SSD*", Volumn was in quotes cause it's not really a drive. So your reply didn't answer the question. Can you give the actual value of `$HOME` (with your username replaced with `Michi` or something if you want) – ikegami Aug 06 '23 at 00:05
  • Re: <$HOME> ... /home/michi/ and only one logical volume with root "/" under c:\CYGWIN64 on the internal SSD – Michi Aug 07 '23 at 16:15

0 Answers0