On Thu, Oct 11, 2007 at 06:31:28PM +0100, Andy Armstrong wrote: } On 11 Oct 2007, at 18:23, Bill Moseley wrote: } >In general, I prefer to run make and make test as a normal user and } >then sudo make install, but sudo cpan sure is easy. But, that's } >hardly a complete test of code. } } Grab the latest CPAN, set these two options: } } make_install_make_command [sudo make] } mbuild_install_build_command [sudo ./Build] } } Then chown your ~/.cpan to yourself (because if you've been doing } sudo cpan some of the files will be owned by root) } } $ sudo chown -R me:me ~/.cpan } } and stop running CPAN as root. It'll then do make, make test, sudo } make install or the ./Build equivalents. } } That doesn't stop make install doing something hoopy as root of course.
It is also easy to never implicate your /usr/bin/perl in anything. I'd just prefer to quote myself at http://mail.pm.org/pipermail/spug-list/2007-April/007823.html in saying that it's an easier administration task to leave the OS perl alone and have a separate /opt/blah/blah/blah perl for your "real" work. -- Josh
signature.asc
Description: Digital signature