in reply to using cpanm with perlbrew
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using cpanm with perlbrew
by nbezzala (Scribe) on Jan 25, 2014 at 06:41 UTC | |
by Corion (Patriarch) on Jan 25, 2014 at 08:18 UTC |