Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by marto (Cardinal)
on Mar 02, 2017 at 07:36 UTC ( [id://1183359]=note: print w/replies, xml ) Need Help??


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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1183359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found