Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: stand-alone perl script(s)

by dasgar (Priest)
on Apr 11, 2016 at 02:23 UTC ( [id://1160077]=note: print w/replies, xml ) Need Help??


in reply to stand-alone perl script(s)

It sounds like you're trying to use the system Perl. I believe that it usually is a good idea to not use the system Perl anything more than a simple one liner.

If you really want to stay with the system Perl and you're not using any modules that need to be compiled (such as XS based modules), you can try using App::FatPacker which will "pack your dependencies onto your script file".

I'm not too experienced with Linux in general, but here's the approach that I would take. First, I would get away from using the system Perl. Since I probably would struggle to compile Perl from the source code, I would go the route of using perlbrew. After that, I would install all of the modules that I needed and also install PAR::Packer. Then I would use the pp utility from PAR::Packer to make a stand-alone executable, which could then be distributed and used on other systems.

I don't know if that is the "best" way to do things, but that would be my approach.

Log In?
Username:
Password:

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

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

    No recent polls found