Hi monks,
I'm trying to package up a Perl script --- Module::ScanDeps' own scandeps.pl --- along with its dependencies, so I can easily run it on another machine that lacks these dependencies.
Using PAR, there are two options: create a Perl script, or create a stand-alone executable.
Trying to create a Perl script with
pp -P -B -o scandeps.par.pl `which scandeps.pl`
I get
$ perl ~/scandeps.par.pl 7tmr_stats_updater.pl
No such file or directory at /work/software/perlbrew/perls/current/bin/par.pl line 855.
I had expected a standalone script to not depend on par.pl, but maybe I misunderstood.
Trying to create a stand-alone executable with
pp -o scandeps `which scandeps.pl`
fails because the target machine's glibc is older than the one on the build machine, so the perl that pp embeds cannot run.
Is there a way I can package scandeps.pl with all its (Perl) dependencies, and run the resulting bundle with the target machine's perl?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.