gpt4 book ai didi

perl - 为什么我用 Perl 的 PAR 得到 "version (5.12.2) doesn' t matchexecutable version”?

转载 作者:行者123 更新时间:2023-12-02 02:26:48 31 4
gpt4 key购买 nike

当我运行以下命令从 Perl 脚本创建可执行文件时:

pp -o process_target_mode_data Process_Target_Mode_Data.pl

我得到以下错误输出:

 Perl lib version (5.12.2) doesn't match executable version (v5.12.0) at /home/Neil/ActivePerl-5.12/lib/Config.pm line 50.

Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/Errno.pm line 8.
BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/Errno.pm line 8.
Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/File/Temp.pm line 148.
BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/File/Temp.pm line 148.
Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/Archive/Zip.pm line 14.
BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/Archive/Zip.pm line 14.
Compilation failed in require at -e line 459.

/home/Neil/ActivePerl-5.12/site/bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parleNrP2Xi' at /home/Neil/ActivePerl-5.12/site/lib/PAR/Packer.pm line 1172, <DATA> line 1.

有人可以向我解释一下发生了什么事以及如何解决这个问题吗?

布莱恩·德·福伊请求的信息:

[bash-3.2][Neil@willy]$  which pp/home/Neil/ActivePerl-5.12/site/bin/pp[bash-3.2][Neil@willy]$   /home/Neil/ActivePerl-5.12/site/bin/pp -o process_target_mode_data Process_Target_Mode_Data.plPerl lib version (5.12.2) doesn't match executable version (v5.12.0) at /home/Neil/ActivePerl-5.12/lib/Config.pm line 50.Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/Errno.pm line 8.BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/Errno.pm line 8.Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/File/Temp.pm line 148.BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/File/Temp.pm line 148.Compilation failed in require at /home/Neil/ActivePerl-5.12/lib/Archive/Zip.pm line 14.BEGIN failed--compilation aborted at /home/Neil/ActivePerl-5.12/lib/Archive/Zip.pm line 14.Compilation failed in require at -e line 459./home/Neil/ActivePerl-5.12/site/bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parludZfldz' at /home/Neil/ActivePerl-5.12/site/lib/PAR/Packer.pm line 1172,  line 1.[bash-3.2][Neil@willy]$  [bash-3.2][Neil@willy]$  /home/Neil/ActivePerl-5.12/bin/cpan -l | grep PARPAR     1.002PAR::Dist       0.47PAR::Heavy      0.12PAR::Filter     0.03PAR::SetupTemp  1.002PAR::SetupProgname      1.002PAR::Packer     1.006PAR::StrippedPARL::Dynamic      0.958PAR::StrippedPARL::Static       0.958PAR::StrippedPARL::Base 0.975PAR::Filter::Bytecode   undefPAR::Filter::Bleach     undefPAR::Filter::Obfuscate  undefPAR::Filter::PatchContent       undefPAR::Filter::PodStrip   undefApp::Packer::PAR        0.91

最佳答案

Perl lib version (5.12.2) doesn't match executable version (v5.12.0)

Perl 安装的某些部分的版本与其他部分不同。更具体地说,如果您查看 /home/Neil/ActivePerl-5.12/lib/Config.pm 第 50 行,您将看到正在执行的 Perl 版本的显式比较(即5.12.0) 到正在使用的 Config.pm 库的版本 (5.12.2)。

如果您执行 ActivePerl 5.12.2 的新安装(以使所有组件升级到同一版本),此错误应该会消失。

关于perl - 为什么我用 Perl 的 PAR 得到 "version (5.12.2) doesn' t matchexecutable version”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3883217/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com