我试图使用PAR包中的pp实用程序在windows上创建我的Perl程序的exe文件。
pp -o script.exe script.pl
该命令运行正常,但当我试图运行exe时,它会给出
The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/Locale.pm line 94. Compilation failed in require at LWP/UserAgent.pm line 1000.
有什么问题吗?我有一个脚本中使用的模块列表,这些模块包括: Cwd、LWP::Simple、LWP::Useragent、Win32 32::OLE。
环境:
1) windows vista
2) Activestate Perl 5.16
3) did not manage to install PAR::Packager successfully, unless i use "force" install, which manage to install.
谢谢
发布于 2013-12-12 14:23:54
Encode::Locale
找到了它需要以pp
无法自动发现的方式解码各种编码所需的模块。您需要告诉pp
需要哪些额外的模块。
这应该能起作用:
pp -m Encode::Byte -o script.exe script.pl
https://stackoverflow.com/questions/20545853
复制相似问题