Category Archives: perl

The locale codeset (cp1252) isn’t one that perl can decode…

We encountered this error while compiling a perl script:

The locale codeset (cp1252) isn’t one that perl can decode, stopped at Encode/Lo
cale.pm line 94. Compilation failed in require at LWP/UserAgent.pm line 1001.

The solution to this is to include the following use statement on the top of your script:

use Encode::Byte;

This will include the mentioned library in the complied exe file.

Perl lib version (5.20.2) doesn’t match executable ‘perl.exe’ version (5.20.1) at C:/Perl/lib/Config.pm line 62.

When using Active Perl 5.20.2 and PP to compile perl files we faced the following error:

Perl lib version (5.20.2) doesn’t match executable ‘perl.exe’ version (5.20.1) at C:/Perl/lib/Config.pm line 62.
Compilation failed in require at C:/Perl/lib/Errno.pm line 8.
BEGIN failed–compilation aborted at C:/Perl/lib/Errno.pm line 8.
Compilation failed in require at C:/Perl/lib/File/Temp.pm line 17.
BEGIN failed–compilation aborted at C:/Perl/lib/File/Temp.pm line 17.
Compilation failed in require at C:/Perl/lib/Archive/Zip.pm line 11.
BEGIN failed–compilation aborted at C:/Perl/lib/Archive/Zip.pm line 11.
Compilation failed in require at -e line 228.
C:\Perl\site\bin/pp: Failed to extract a parl from ‘PAR::StrippedPARL::Static’ t
o file ‘C:\Users\zveress\AppData\Local\Temp\parlMVgYDUi.exe’ at C:/Perl/site/lib
/PAR/Packer.pm line 1158, line 1.

This apparently is a bug. The solution for us was to download and install Active Perl 5.20.1. Since this version is no longer available on the Activeperl website you can get it from download.com