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

Hi there, I am trying to use perl PAR module to create a standalone perl app. It turns out, the app works only on my own computer where it creates. when it is copied to other computers, it can not be executed. Any suggestion is appreciated! Thanks guys!

Replies are listed 'Best First'.
Re: Create standalone app
by nlwhittle (Beadle) on Jan 06, 2015 at 19:24 UTC

    From the PAR module documentation: "If you want to make an executable that contains all module, scripts and data files, please consult the pp utility instead. pp used to be part of the PAR distribution but is now shipped as part of the PAR::Packer distribution instead."

    --Nick
Re: Create standalone app
by Anonymous Monk on Jan 06, 2015 at 19:47 UTC
Re: Create standalone app
by Discipulus (Canon) on Jan 08, 2015 at 08:39 UTC
    As learned recently you can also use CitrusPerl to pack your executables. Even if i have not tested yet Citrus Perl seems a good choice and has not the very-slow-first-time-run problem of pp (this is because pp create an archive and the first time it has to be extracted, possibly with the whole Perl release embedded)

    HtH
    L*
    update: to create standalone executables you can also use cava packager by same authors of citrusperl.

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
A reply falls below the community's threshold of quality. You may see it by logging in.