in reply to Re: How to change @INC permanently?
in thread How to change @INC permanently?

As root, yes. However, I make an effort to avoid being root whenever possible, because bad things can (and do) happen when I'm root. I'm way too familiar with reinstalling Linux, because of playing around as root...

Replies are listed 'Best First'.
Re^3: How to change @INC permanently?
by cbrandtbuffalo (Deacon) on Aug 24, 2005 at 19:50 UTC
    It's a good practice to avoid being root if you can. I just use sudo and get the same results with a safety net. You can either run the CPAN shell using sudo to install things or use sudo on the final install step for a manual install.
    perl Makefile.PL make make test sudo make install
    That will put the new modules in the places perl expects and make them available for everyone and you don't need to log in as root.