Strawberry perl on Windows won't run anymore

739 Views Asked by At

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)
0

There are 0 best solutions below