Note: Beware! Default reply-to is to the list.

Hi Anne,

On Sat, Mar 5, 2011 at 11:02 PM, Anne Wainwright
<anothera...@fables.co.za> wrote:
> Note: Beware! Default reply-to is to the list.
>
>
> Hi,
>
> A couple of notes & queries.
>
> one.
> 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
install' command.

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
Za-pm@pm.org
http://mail.pm.org/mailman/listinfo/za-pm

posts also archived on Mail Archive
http://www.mail-archive.com/za-pm@pm.org/

Reply via email to