Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to change @INC permanently?

by AJRod (Scribe)
on Aug 24, 2005 at 15:46 UTC ( [id://486246]=note: print w/replies, xml ) Need Help??


in reply to How to change @INC permanently?

If you have theoretically the power to change @INC permanently on your system, wouldn't you also have the power to more simply reinstall the module in a place defined by @INC?

Replies are listed 'Best First'.
Re^2: How to change @INC permanently?
by spiritway (Vicar) on Aug 24, 2005 at 17:04 UTC

    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...

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://486246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-19 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found