Note: Beware! Default reply-to is to the list.
On Sat, Mar 5, 2011 at 11:02 PM, Anne Wainwright
> Note: Beware! Default reply-to is to the list.
> A couple of notes & queries.
> I had for some unknown reason been using '$ sudo cpan', except that
> certain things would not install without the 'sudo'
> I had no idea why, but want someone to baby-step me here and say,
> "That's right, no sudo"
Have you read the "Life with CPAN" articles on the web. There is one
that says how to install modules if you're not root, etc.
What I picked up from there was that you can set your make install
command to 'sudo make install' and of course do the same for 'Build
That allows you to easily do cpan module::name to install it, still
keeping the .dot directories in your logged in user's ownership.
The file I change to do this is called MyConfig.pm under ~/.cpan/CPAN.
$ grep sudo MyConfig.pm
'make_install_make_command' => q[sudo /usr/bin/make],
'mbuild_install_build_command' => q[sudo ./Build],
Hope this helps :)
Za-pm mailing list
posts also archived on Mail Archive