In a presentation at the Second German Perl Workshop,
Andreas König, author of CPAN, gave a talk on his module, mentioning
explicitly that you are expected to manage the dependencies in a bundle file yourself.
The autobundle feature is merely a convenience to get you started.
My advice would be to generate a snapshot with the autobundle feature,
and then hand-tune it till you like it. Core modules should be avoided, since they
will install a new perl (as brother Fastolfe pointed out).
You can install core modules *without* installing a new perl by hand-fetching (or
building) a distribution tarball for them, and installing that by a local script.
This trivial subroutine does a simple install from a distribution tarball under Linux/Unix:
sub install_perl_module {
my ($tarball) = @_;
my $dir = $tarball;
$dir =~ s/\.tar\.gz//;
my $cmd = 'tar -zxvf ' . $tarball . ' ; ' .
'pushd ' . $dir . ' ; ' .
'perl Makefile.PL ; make ; make test ; make install ; ' .
'popd';
system($cmd);
}
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com |