使用字节码编译筛选器PERL时出错

使用字节码编译筛选器PERL时出错,perl,compilation,binary,bytecode,Perl,Compilation,Binary,Bytecode,当我使用:pp-I lib-f Bytecode-o myapp\u binary\u Bytecode myapp编译时 我得到这个错误: "my" variable $fh masks earlier declaration in same scope at /Library/Perl/5.12/PAR/Filter/Bytecode.pm line 60. Can't locate B/Bytecode.pm in @INC (@INC contains: /Library/Perl/5.

当我使用:pp-I lib-f Bytecode-o myapp\u binary\u Bytecode myapp编译时

我得到这个错误:

"my" variable $fh masks earlier declaration in same scope at /Library/Perl/5.12/PAR/Filter/Bytecode.pm line 60.
Can't locate B/Bytecode.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3/darwin-thread-multi-2level /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at (eval 1) line 18.
BEGIN failed--compilation aborted at (eval 1) line 18.
BEGIN failed--compilation aborted.
Cannot transform /var/folders/cd/rwsp63c15bb01r89z76_bvr40000gn/T/Q3ubgSUe8P to /var/folders/cd/rwsp63c15bb01r89z76_bvr40000gn/T/LIcOpNf_Oh: No such file or directory (512)
虽然编译后的二进制文件可以工作,但如何修复错误


谢谢

错误表示您正在尝试使用Perl无法定位的文件。通常的原因是您没有安装该模块


缺乏读取模块文件的权限也可能导致该错误,但这几乎从来都不是问题所在。

我会毫不迟疑地调查我的问题。至于为什么运行中的二进制文件仍然存在这个问题,pp很容易丢失依赖项,但它有一种动态的方法来解决这个问题。尝试运行pp-x脚本,它将运行该脚本以查找任何运行时依赖项。另外,我认为有一个开关可以手动将依赖项添加到列表中。

看起来我需要安装字节码模块?我安装了该模块,然后程序似乎编译时出现了不同的错误,但在运行二进制代码时会出现完全相同的错误