Can I use cpan inside a perlbrew context -- to install perl modules to a particular perlbrew perl install, only.
Yes, at least theoretically -- I've seen a few questions about perlbrew from folks who don't know to `which programname` to debug issues they encounter
Do I prefix the cpan install command with sudo? As in sudo perl -MCPAN -e'install Blah::blah'?
Are you root/sysadmin? sudo is for when a sysadmin is installing programs/perls/perl modules for everybody ... for day-to-day activities sysadmins don't login under the sysadmin account (root), so they sudo to do sysadmin tasks ...
perlbrew is all about you installing perls/modules in your home directory for yourself
sure its possible to shared perlbrew running as root, but then you wouldn't be asking these questions if this was the case :)
Can I actually use cpan to install modules in a particular perlbrew perl install only? Is that syntax without the sudo?
Yes, use perlbrew to switch current perl, then run cpan as normal (cpan Module::Name) and you'll install modules in the current perl
I'm on win32 so I don't perlbrew, but I'd look for a perlintro equivalent for perlbrew :)
In reply to Re: perlbrew and cpan
by Anonymous Monk
in thread perlbrew and cpan
by lcarter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |