+ -
当前位置:首页 → 问答吧 → perl 使用pp生成exe时出现错误,请指教

perl 使用pp生成exe时出现错误,请指教

时间:2010-09-28

来源:互联网

我用perl5.10.1版本,安装步骤如下:
在ppm中,先安装Parse-Binary, Win32-Exe, Module-ScanDeps, PAR-Dist,Getopt/ArgvFile,都成功
然后,
用迅雷在网站http://www.perl.com/CPAN/authors/id/S/SM/SMUELLER/
把PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par.bin 文件下下来,并用如下命令安装:

C:\Perl>perl -MPAR:ist -e "install_par('PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par.bin')"
安装成功了,提示:
Installing C:\Perl\site\lib\pp.pm

Installing C:\Perl\site\lib\App\Packer\PAR.pm

Installing C:\Perl\site\lib\PAR\Filter.pm

Installing C:\Perl\site\lib\PAR\Packer.pm

Installing C:\Perl\site\lib\PAR\Filter\Bleach.pm

Installing C:\Perl\site\lib\PAR\Filter\Bytecode.pm

Installing C:\Perl\site\lib\PAR\Filter\Obfuscate.pm

Installing C:\Perl\site\lib\PAR\Filter\PatchContent.pm

Installing C:\Perl\site\lib\PAR\Filter\PodStrip.pm

Installing C:\Perl\site\lib\PAR\StrippedPARL\Base.pm

Installing C:\Perl\site\lib\PAR\StrippedPARL\Dynamic.pm

Installing C:\Perl\site\lib\PAR\StrippedPARL\Static.pm

Installing C:\Perl\bin\par.bat

Installing C:\Perl\bin\par.pl

Installing C:\Perl\bin\parl.exe

Installing C:\Perl\bin\parldyn.exe

Installing C:\Perl\bin\pp

Installing C:\Perl\bin\pp.bat

Installing C:\Perl\bin\tkpp

Installing C:\Perl\bin\tkpp.bat

此时执行
C:\perl510\bin>pp -o vpn.exe 1.pl
提示如下错误信息:
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Can't load 'C:/perl510/lib/auto/IO/IO.dll' for module IO: load_file:找不到指定的
程序。 at C:/perl510/lib/XSLoader.pm line 70.
at C:/perl510/lib/IO.pm line 11
Compilation failed in require at C:/perl510/lib/IO/Handle.pm line 266.
BEGIN failed--compilation aborted at C:/perl510/lib/IO/Handle.pm line 266.
Compilation failed in require at C:/perl510/lib/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at C:/perl510/lib/IO/Seekable.pm line 101.
Compilation failed in require at C:/perl510/lib/IO/File.pm line 133.
BEGIN failed--compilation aborted at C:/perl510/lib/IO/File.pm line 133.
Compilation failed in require at -e line 448.
pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'parldaMJf
UU.exe' at C:/perl510/site/lib/PAR/Packer.pm line 1155, <DATA> line 1.

C:\perl510\bin>

请问是怎么回事啊?我还装了一个perl.5.8.9,用的PAR-Packer-0.980-MSWin32-x86-multi-thread-5.8.8.zip,提示错误信息一样,看来不是版本的问题,不知谁能帮助指教啊。

作者: zljjg2000   发布时间: 2010-09-28

自己顶一下

作者: zljjg2000   发布时间: 2010-09-29