Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Why is cpanm installing Perl5 modules in the wrong spot?

by hippo (Bishop)
on Feb 07, 2021 at 17:17 UTC ( [id://11128021]=note: print w/replies, xml ) Need Help??


in reply to Re: Why is cpanm installing Perl5 modules in the wrong spot?
in thread Why is cpanm installing Perl5 modules in the wrong spot?

run it as a root or with the --sudo option

FWIW, I would always use --sudo instead of running cpanm with elevated privs so that the build and test phases are run as the unprivileged user. It is only the installation into the protected directories which requires root access and that's what --sudo does. You are still trusting the module author for that final installation phase, of course.


🦛

Replies are listed 'Best First'.
Re^3: Why is cpanm installing Perl5 modules in the wrong spot?
by dsheroh (Monsignor) on Feb 08, 2021 at 08:19 UTC
    I suspect the "less safe option" comment wasn't meant to say that running as root is better than using sudo, but rather was an attempt to scare the user away from wanting to do a system-wide install at all. (i.e., "running as root or using sudo is less safe than a local-lib install") Because the current fad is to treat the system perl as if it's made of plutonium and should never be approached or touched in any way at all.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found