If the target machine is any sort of unix/linux box, you'll probably want to do that as the root user. Or, as a non-root user, you can install the modules in some non-default path (where you have write access) by changing the the third step as follows:tar xzf module-name.tar.gz cd module-name perl Makefile.PL make make test make install cd ..
perl Makefile.PL PREFIX=/my/install/path
But as the first reply points out, things can get tricky if the chosen modules have dependencies that you haven't anticipated. The best thing might be to have an equivalent machine with internet access, use perl -MCPAN -e shell to go through the module installations, and keep track of any dependencies that are reported in the process.
When there are dependencies among the modules you want, you'll need to make sure you install them in the proper order. (The manual CPAN session will do things in proper order, so just keep track of that, and make sure to move all the tar files from the .cpan/sources/authors/id/* directories.)
(UPDATE: If you use "perl -MCPAN" on an internet-connected machine to do a "mirror" or "dry-run" for the set of installations you want, there's a chance that this might miss some module dependencies, if someone has already been installing CPAN modules on that machine. At worst, you may need to look through the README files of each module to see what it's dependencies are, if any.)
In reply to Re: Installing modules from a local machine
by graff
in thread Installing modules from a local machine
by jimman666
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |