Something I have used before, (though not on aix systems, so may need adjustment,) is to use Module::ScanDeps to dump a list of the used modules to a file from the development computer, then iterate over the list, and use the CPAN module to install any unfound modules.
use Module::ScanDeps; my $perl_script = 'whatever.pl'; my $hash_ref = scan_deps($perl_script); for (keys %$hash_ref){ print $_,"\n" if ( $$hash_ref{$_}{'file'} =~ m#/site/# and $_ =~ m +#\.pm# ); } # Only capture the name if it IS a module (.pm) and it # isn't in core, (path includes /site/). You may need # to modify the filter if your modules are in non-standard # places.
Then take the list to the different computer and run it through this script:
use CPAN; my @modules = # module list from the previous script for $mod (@modules){ my $obj = CPAN::Shell->expand('Module',$mod); $obj->install; }
In reply to Re: installing many modules on different machines
by thundergnat
in thread installing many modules on different machines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |