Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: cpanm --sudo installs to /root/perl5 instead of /usr

by Anonymous Monk
on Jun 26, 2012 at 04:33 UTC ( #978321=note: print w/ replies, xml ) Need Help??


in reply to cpanm --sudo installs to /root/perl5 instead of /usr

What am I missing?

Probably some kind of Config entry -- see perl "-V:.*?usr.*?"   and   perl "-V:install.*" -- it all works off of Config and these overrides

Re: CPAN won't install into personal directory; probably an o conf problem, Re: My favorite pitfall: setting up CPAN
perl -I/home/user/stuff/lib/perl5 -S myfoobar.pl
perl -Mlib=/home/user/stuff/lib/perl5 -S myfoobar.pl

export PERLLIB=/home/user/stuff/lib/perl5
myfoobar.pl

export PERL_MM_USE_DEFAULT=1
export PERL_MB_OPT=--install_base /home/user/stuff
export PERL_MM_OPT=INSTALL_BASE=/home/user/stuff
export AUTOMATED_TESTING=0

cpan -fi Module Module Module Module Module Module

cpanp -i Module Module Module --allow_build_interactivity=0 --skiptest=0 --force --prereqs=1 --no_update=1


Comment on Re: cpanm --sudo installs to /root/perl5 instead of /usr
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-11-23 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (129 votes), past polls