Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Creating executable with packaged libraries, libraries and modules included but executable does not function on machines without perl installed

by Alan! (Initiate)
on Dec 20, 2017 at 20:13 UTC ( [id://1205943]=perlquestion: print w/replies, xml ) Need Help??

Alan! has asked for the wisdom of the Perl Monks concerning the following question:

I have been trying to compile a script that was written in perl by someone other than myself into an executable format that can be used without having perl installed. There seems to be some sort of issue with Crypt::SSLeay packaging but I'm not sure what the error means. Screenshot located at https://imgur.com/a/qfxQs

I've tried using PAR pp and cava to package, both will create executables that run just fine on the machine I'm using that has perl, but whenever I transfer it to a different computer I get the error seen in the screenshot. It's been the same error each time after changing compiler settings, and I'm not sure what to do at this point. If I have left anything out that may assist in answer please let me know and I will be happy to provide, coding is not my field so I am still learning and this is my first encounter with perl. Thank you!

  • Comment on Creating executable with packaged libraries, libraries and modules included but executable does not function on machines without perl installed

Replies are listed 'Best First'.
Re: Creating executable with packaged libraries, libraries and modules included but executable does not function on machines without perl installed
by marto (Cardinal) on Dec 20, 2017 at 20:22 UTC

    Welcome! You can often make it easier for people to help you by providing more detail than you have here. Perl version, how you tried to package the executable and so on. How do I post a question effectively? has more on this, and you can just post error messages in code tags as described each time you post here, the same as you would any other code/data.

    On to the problem at hand. pp has the -x option which runs your program in an attempt to detect any other run time dependencies. Also the -l option, for adding shared libs. Super Search is your friend, see also Re^2: dll not embedded in PAR::Packer's output.

    Update: Fixed typo, also more interesting pp stuff. The 'exe' it generates is just a zip file, you can extract it as you would any other zip file to find out what the package contains. If you are creating the package pp can be very verbose (either printed to screen or to a log file) using pp -x -vvv .....the other stuff goes here. This can be helpful when you've hit problems in packaging.

Re: Creating executable with packaged libraries, libraries and modules included but executable does not function on machines without perl installed
by salva (Canon) on Dec 21, 2017 at 07:35 UTC
    Check also Win32::Packer which is able to find out the DLL dependencies by itself.
Re: Creating executable with packaged libraries, libraries and modules included but executable does not function on machines without perl installed (ppsimple.pl)
by beech (Parson) on Dec 21, 2017 at 01:07 UTC

    Hi,

    Try ppsimple.pl yourprogram.pl

    Its supposed to automate the finding all the extra .dll's required, without adding the system dlls

    If it doesn't work post only the last ?500? lines of the log as this program is very verbose

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1205943]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found