[Melbourne-pm] creating portable bundles of modules

Toby Corkindale toby.corkindale at strategicdata.com.au
Tue Feb 2 22:20:59 PST 2010

On 03/02/10 17:05, Malcolm Herbert wrote:
> I have a need to be able to bundle a few CPAN-sourced modules together
> with some of my own code for both NetBSD and Linux of various flavours.
> What's the best method for doing this?

You could package them into, well, packages, to suit the destination 
machines. Which is painful enough when you're only doing it for one 
version of one distribution, and absolutely inhumane to consider for a 
whole collection of targets, as in your case.

Another option is PAR, which bundles everything, including the 
interpreter, into a single executeable. This does mean you can use the 
same PAR on many distributions, but will still need versions for i386 vs 
amd64, and probably bsd vs linux too, unless one of the binary 
compatibility layers can come to the party.

You can also use local::lib, but again, still needs versions being built 
for the various architectures.

Both PAR and local::lib will allow multiple architectures to be 
installed alongside each other, which is great, if you're patient enough 
to compile them all. Better yet, attempt to do everything in pure-perl 
with no XS.


More information about the Melbourne-pm mailing list