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, 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 :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perlbrew and cpan (perlbrewintro)
by Anonymous Monk on Aug 07, 2014 at 07:33 UTC | |
Re^2: perlbrew and cpan
by Anonymous Monk on Aug 07, 2014 at 08:54 UTC | |
by ikegami (Patriarch) on Aug 07, 2014 at 16:49 UTC |