Create exe with Perl on Windows
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/Locale.pm 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 url_service_action.pl: 256 at C:/strawberry/perl/site/lib/Module/ScanDeps.pm line 1302.
To quickly fix that issue, I did a sad thing : commenting those lines in C:\strawberry\perl\site\lib\Module\ScanDeps.pm line 1302 :
#die $compile # ? "SYSTEM ERROR in compiling $file: $rc" # : "SYSTEM ERROR in executing $file: $rc" # unless $rc == 0
This is certainly not the best thing to do but it resolved my issue and my binary works perfectly :-)