1

Suddenly, my Strawberry Perl on Windows 10 says "This app can't run on your PC." I have a 64-bit Lenovo laptop. I reinstalled the latest 64-bit Strawberry perl, and it still doesn't run in the same way. Then I installed the 32-bit version. Now perl.exe seems to work, but if I run cpanm I get:

Errno architecture (MSWin32-x86-multi-thread-64int-10.0.19041.388) does not match executable architecture (MSWin32-x64-multi-thread-10.0.19041.388) at C:/Strawberry/perl/lib/Errno.pm line 12. Compilation failed in require at C:/Strawberry/perl/lib/File/Temp.pm line 152. BEGIN failed--compilation aborted at C:/Strawberry/perl/lib/File/Temp.pm line 152. Compilation failed in require at cpanm line 32. BEGIN failed--compilation aborted at cpanm line 32. Compilation failed in require at cpanm line 499. BEGIN failed--compilation aborted at cpanm line 499.

What is wrong?

Here's my system:

OS Name Microsoft Windows 10 Enterprise
System Name L18-0486
System Manufacturer LENOVO
System Model    20LES15000
System Type x64-based PC
System SKU  LENOVO_MT_20LE_BU_Think_FM_ThinkPad X1 Yoga 3rd
Processor   Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1800 Mhz, 4 Core(s), 8 Logical Processor(s)
toolic
  • 57,801
  • 17
  • 75
  • 117
Manu
  • 141
  • 3
  • 1
    Looks like you're using a 64-bit version of Perl to access a file installed using a 32-bit installation of Perl. – ikegami Jan 27 '21 at 17:39
  • Please paste a pic of your system properties, like shown in https://www.kapilarya.com/fix-this-app-cant-run-on-your-pc-windows-10. I'd remove the 32-bit Perl and try reinstalling a new 64-bit version. Perhaps your original 64-bit perl.exe just got corrupted. – jimtut Jan 27 '21 at 17:40
  • Pasted. Thoughts? – Manu Jan 27 '21 at 17:59
  • Yeah, that's irrelevant. You're using a 64-bit version of Perl to access a file installed using a 32-bit installation of Perl. – ikegami Jan 27 '21 at 21:04
  • Not irrelevant, it's proof that it's really a 64-bit OS. But, yeah, you have a mix of files installed. I think you'll need to remove the Perl install(s), and check for other files, like a cpan dir, and start over with a fresh 64-bit install. – jimtut Jan 28 '21 at 15:35
  • @jimtut, Re "*Not irrelevant, it's proof that it's really a 64-bit OS.*", which is 1) irrelevant, and 2) already known since it's impossible to run a 64-bit program on a 32-bit OS – ikegami Jan 28 '21 at 19:43
  • if I was using windows for perl I would uninstall strawberry and install [activeperl](https://www.activestate.com/products/perl/downloads/) which a bit more flexible and choose perl 5.26. – Tch Jan 29 '21 at 08:20
  • Manu, did you ever get this working? – jimtut Feb 03 '21 at 04:53
  • Thank you very much for following up on this. I did uninstall everything, and reinstalled Perl. Now the program runs, but I am having other issues with packages which I posted here: https://stackoverflow.com/questions/66065248/strawberry-perl-lyx-perl-modules-and-windows-10 – Manu Feb 05 '21 at 15:05

0 Answers0