Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Anonymous Monk
on Jun 26, 2012 at 04:33 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-19 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found