perl.exe is not a valid win32 application

Posted by jetstream on 2015-10-15 06:50

-Installed ActivePerl- on a Windows Server 2008 R2 64bit machine.
-Using activeperl for awstats7.4(build 20150714) with iis7.5

After working as expected many times, with no updates or system changes, all of a sudden running the same command line script results in errors:

Popup - "C:\Perl\bin\perl.exe is not a valid win32 application"
Cmd - "Access is denied."

After searching but not finding much, an old posting hinted at something wrong with perl.exe
It turns out the file C:\perl\bin\perl.exe was corrupted and was showing 0 bytes.

Remove perl.exe, re-run installer, and choose 'Repair'. A new perl.exe (379KB) will appear.

The command line script to generate awstats reports is now working again.

ActiveState Staff
Wed, 2015-12-02 10:22

There's a possibility this happened due to a duplicated pointer problem in build 2002 and lower.

Consider upgrading to build 2003 when it releases later this year.