in reply to How to convert bunch of perl file + other dependent Input files Into a single executable

I suggest using pp, to include dependencies in your packaged executable, do:

pp -x scriptname.pl -o exename.exe

perl2exe is not open source, read the licence documentation. The docs also show the arcane way of including dependencies.

  • Comment on Re: How to convert bunch of perl file + other dependent Input files Into a single executable
  • Download Code

Replies are listed 'Best First'.
Re^2: How to convert bunch of perl file + other dependent Input files Into a single executable
by huck (Prior) on Mar 02, 2017 at 08:03 UTC

      I think you misread my post, IMHO perl2exe has an arcane method for including modules, not pp, which I recommend.

Re^2: How to convert bunch of perl file + other dependent Input files Into a single executable
by rockyurock (Acolyte) on Mar 02, 2017 at 10:09 UTC
    I used this command but It's giving me the below error :

    C:\Users\MTK06729\AppData\Local\Temp\parlC3TX.exe: Perl lib version (5.24.1) doe sn't match executable 'perl.exe' version (5.24.0) at C:/Perl64/lib/Config.pm lin e 62. Compilation failed in require at C:/Perl64/lib/Errno.pm line 10. BEGIN failed--compilation aborted at C:/Perl64/lib/Errno.pm line 10. Compilation failed in require at C:/Perl64/lib/File/Temp.pm line 17. BEGIN failed--compilation aborted at C:/Perl64/lib/File/Temp.pm line 17. Compilation failed in require at C:/Perl64/lib/Archive/Zip.pm line 11. BEGIN failed--compilation aborted at C:/Perl64/lib/Archive/Zip.pm line 11. Compilation failed in require at -e line 240. C:\Perl64\site\bin/pp: Failed to extract a parl from 'PAR::StrippedPARL::Static' to file 'C:\Users\MTK06729\AppData\Local\Temp\parlFZqv5lw.exe' at C:/Perl64/sit e/lib/PAR/Packer.pm line 1184, <DATA> line 1.

      How did you install pp? What does perl -MPAR::Packer -le "print $PAR::Packer::VERSION" return?

        It's returning me 1.035