perl中的运行时错误
通过使用PAR::Packager打包一个perl文件,我创建了一个独立的exe文件 该文件在我的系统中运行良好,但它抛出了一个错误。如果我在另一个以windows xp为操作系统的系统中使用它perl中的运行时错误,perl,par,Perl,Par,通过使用PAR::Packager打包一个perl文件,我创建了一个独立的exe文件 该文件在我的系统中运行良好,但它抛出了一个错误。如果我在另一个以windows xp为操作系统的系统中使用它 The locale codeset (cp936) isn't one that perl can decode,Stopped at Encode/Locale.pm line 94 Compliation failed in require at LWP/UserAgent.pm line 100
The locale codeset (cp936) isn't one that perl can decode,Stopped at Encode/Locale.pm line 94
Compliation failed in require at LWP/UserAgent.pm line 1000
请给出一些建议。谢谢
更新:
我在脚本中包含的文件是
use Encode::Byte;
use strict;
use warnings;
use WWW::Mechanize;
use utf8;
代码中缺少以下行:
use Encode::CN;
正如您在中所看到的,cp936不包括在内。但它被列在清单中
添加这两个包(Encode::Byte和Encode::CN应该可以解决您的问题)。@mpapec谢谢,但我已经在脚本中包含了该文件。如何
Encode::Alias Encode::Config
?如何Encode::CN
?