Create exe with Perl on Windows


0.00 avg. rating (0% score) - 0 votes

In the past, I already made an article on how to make exe from a Perl script on Windows. I was using Strawberry or Activesync but have a preference for Strawberry as it’s totally free :-).

This time, I tried to reproduce the tips but encountered several issues. The first one was that error :
The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/ line 94.

It could simply be resolved by addressing ‘-x’ parameter to the ‘pp’ command line.

The other problem was this compilation error :
SYSTEM ERROR in executing 256 at C:/strawberry/perl/site/lib/Module/ line 1302.

To quickly fix that issue, I did a sad thing : commenting those lines in C:\strawberry\perl\site\lib\Module\ line 1302 :

This is certainly not the best thing to do but it resolved my issue and my binary works perfectly 🙂

Author: Deimos

I'm a passionate DevOps. I love transmit my skills and I love working on high availability infrastructures/technologies.

Laisser une réponse