Chris Devers [[EMAIL PROTECTED]] quoth: *>make installing modules a lot easier, but it also puts you on autopilot, *>and that could mean doing questionable things (like stomping over system *>files). Your first question is a good one and I'm also curious if CPAN can *>be used in such a way that you can control where files go. Anyone?
with the makepl_arg in the configuration. See the documentation for CPAN. *> *>> 1a. Do I have to run CPAN as root? (I'm a bit paranoid of overwriting *>> critical system files). *> *>Or under sudo, yeah I would say so. For a normal module install, the old *>way was to find & download the required tar.gz file[s], and then e.g.: sudo or root are equivalent so it makes no difference. The reason why you would want to run it as root is so that it will install modules in the system library as opposed as a regular user in a home directory. The risk of mangling a perl install to the detriment of your system is minimal as long as you pay attention and use some common sense when problems present themselves. *>> 2. Each time I've tried to install a module using CPAN, CPAN appears to *>> download the source to Perl 5.6.1. I've read enough of the trials and *>> travails people have had installing 5.6.1 that I don't want to join the *>> fun. So each time I've killed CPAN. CPAN's not going to try to install *>> Perl 5.6.1 automatically, is it? *> *>It's only done that for me once, and I honestly didn't notice how I *>triggered that to happen in the first place. For most of the things you *>install this shouldn't be a problem, and if it does ask if you want to do *>this you should be able to just tell it not to do so when CPAN asks. This is a known bug in CPAN.pm and is mentioned, again, in the documentation. The best way to fix this is to reinstall the module manually. It is caused by modules which used to be outside the core now being included in perl5.6.1 with a higher version thus cpan.pm wanting to download perl5.6.1 to get the module it seeks. http://theoryx5.uwinnipeg.ca/CPAN/perl/CPAN.html and http://www.cpan.org/misc/cpan-faq.html also has some useful pointers wrt cpan.pm and modules. My CPAN dir, HFB also has a .pdf of some more less commonly found wisdom about cpan. e.
