ITPub博客

首页 > 应用开发 > IT综合 > install par

install par

原创 IT综合 作者:liang573728 时间:2019-02-11 17:00:05 0 删除 编辑
前天公司一同事问,能不能写过exe文件,处理win下的东西,一直来都是在UNIX下写程序,还真写过exe。于是决定将perl程序编译为exe。折腾了2天,不停的google,终于安装完par。下面就简单下安装步骤:[@more@]
========install par=====
1.) ppm install par
Or ppm install http://www.bribes.org/perl/ppm/PAR.ppd
2.) ppm install http://www.bribes.org/perl/ppm/File-Temp.ppd
3.) ppm install http://www.bribes.org/perl/ppm/PAR-Packer.ppd
Question and answer
1、if error: "lib version (v5.8.8) doesn't match executable version (v5.8.6)"
The problem is that there are Perl libraries installed on your machine that are not compatible with your Perl version.
To correct the problem:
> getting http://www.perl.com/CPAN/authors/id/S/SM/SMUELLER/PAR-Packer-0.975-MSWin32-x86-multi-thread-5.8.8.par
> replacing PAR::StrippedPARL::Static.pm and PAR::StrippedPARL::Dynamic.pm in the sitelib by the files contained in
PAR-Packer-0.975-MSWin32-x86-multi-thread-5.8.8.par
> update PAR::StrippedPARL::Base.pm in Line 71 to "my @libs = (map {"-I"$_""} @INC);"
2、if error: "Perl_sv_2iv_flags could not be located in thedynamic link library perl58.dll"
>The Perl58.dll version:
C:Perlbin>perl -MWin32 -e "print Win32::GetFileVersion('c:/perl/bin/perl58.dll')"
588822
There are no other perl58.dll's on my system. Par's version:
C:Perlsitebin>pp -V
PAR Packager, version 0.976 (PAR version 0.976)
> only perl58.dll is the one from ActiveState build 822, then the problem is with your PAR packager. It contains an image of perl58.dll from a
different (earlier) version of Perl
To correct the problem:
For ActiveState build 822:
>perl -MPAR::Dist -e "install_par('http://backpan.perl.org/authors/id/S/SM/SMUELLER/PAR-Packer-0.976-MSWin32-x86-multi-thread-5.8.8.par')"
3、if error:"PPM in ActivePerl ... failed: unable to open database file"
>This is caused by limitations in Perl's handling of Unicode and we plan to address this issue in the upcoming release. The recommended workaround is to tell
PPM to access its state database from a path consisting of plain ASCII characters only. It is achieved by setting the ACTIVEPERL_PPM_HOME environment
variable to the name of a directory that ppm should use.
>To correct the problem:
C:> set ACTIVEPERL_PPM_HOME=d:PerlTemp

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/640706/viewspace-1043925/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: Compare array
请登录后发表评论 登录
全部评论

注册时间:2005-10-15

  • 博文量
    152
  • 访问量
    138345