On Fri, Feb 11, 2011 at 6:23 PM, Michael Miller <[email protected]> wrote:
> I tried:
>
> pp -B -P -o packed.pl testy.pl

"pp -B ..." is pretty broken and probably won't get fixed anytime soon :(

> As far as my goal, is PAR-Packer the answer or am I complicating things.

No, PAR::Packer is the way to go if you want to create a standalone executable
that doesn't assume anything (not even perl) on the target machine.

>  All the SCO boxes I'm trying to copy to will have a default version of perl 
> on it,
> but will not have a compiler.  So I need to package up modules and libraries
> my program depends on for deployment to the other boxes. Is there a manual 
> way to do this?

First install all CPAN modules that your application needs and which
are missing from
the default target perl installation into a separate tree, e.g. when
building "by hand"

$ perl Makefile.PL LIB=/some/path

or when using the cpan shell

cpan> o config makepl_arg LIB=/some/path

Add your own modules, then tar up the whole stuff below /some/path and deploy.
Your application would then need to

use lib "/deployed/path".

Given that you have to do the first half anyway (so you have a working
application
that you can pack with "pp"), it's doable, but not as convenient as
just deploying
a single executable.

Cheers, Roderich

Reply via email to