Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perlbrew and cpan

by ikegami (Pope)
on Aug 07, 2014 at 14:23 UTC ( #1096639=note: print w/ replies, xml ) Need Help??


in reply to perlbrew and cpan

Can I use cpan inside a perlbrew context -- to install perl modules to a particular perlbrew perl install, only.

Yes.

perlbrew use NAME cpan MODULE
or
"${PERLBREW_ROOT:-$HOME/perl5/perlbrew}/perls/NAME/bin/cpan" MODULE

(Replace NAME with the name of the perlbrew installation you want to use, and MODULE with the name of the module you want to install.)

Do I prefix the cpan install command with sudo? As in sudo perl -MCPAN -e'install Blah::blah'?

Not likely. The default settings for perlbrew places the Perl installations in your own home directory. It's unlikely that someone else installed a Perl there, so it wouldn't make sense to pretend to be someone else.

Can I actually use cpan to install modules in a particular perlbrew perl install only? Is that syntax without the sudo?

Seems you asked the same question twice?


Comment on Re: perlbrew and cpan
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-28 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (257 votes), past polls