It seems that you have cpanm installed into your system perl, and not your perlbrew perl.
Do you have cpanm installed in your perlbrew perl, e.g. /home/nitishb/perl5/perlbrew/perls/perl-5.16.3/bin/cpanm?
If you don't find cpanm there, then I recommend you confirm that you are using your perlbrew perl:
bash-4.2$ which perl /home/nitishb/perl5/perlbrew/perls/perl-5.16.3/bin/perl
Then install cpanm using the following (this is taken directly from the App::cpanminus instructions):
Then, confirm that you are using the cpanm that was installed to your perlbrew perl:curl -L http://cpanmin.us | perl - App::cpanminus
Then install Moo using cpanm:bash-4.2$ which perl /home/nitishb/perl5/perlbrew/perls/perl-5.16.3/bin/cpanm
You may also need to install App::DuckPAN into your perlbrew perl:cpanm Moo
I hope this helps.cpanm App::DuckPAN
In reply to Re: using cpanm with perlbrew
by kevbot
in thread using cpanm with perlbrew
by nbezzala
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |