How do I install CPAN modules while using perlbrew?

前端 未结 2 818
太阳男子
太阳男子 2020-12-23 11:31

I have started using perlbrew and installed perl-5.12.2.

I understand I need to re-install my CPAN modules, so I switched to my new Perl version (

相关标签:
2条回答
  • 2020-12-23 12:07

    Everything should be working fine with "cpan" as well as "cpanm", that is: when switching perl with perlbrew, cpan sees the installed modules of the version you use.

    While it's true that cpanm is the recommended tool to use with perlbrew, cpan allows for test reporting so that is what I always use.

    0 讨论(0)
  • 2020-12-23 12:23

    After installing perlbrew you could install cpanm through this command:

    perlbrew install-cpanm
    

    Otherwise you will need to install cpanm manually each time you switch your Perl version on perlbrew. With this command just once.

    Once installed you can then use cpanm to install the missing module:

    cpanm File::Copy::Recursive
    
    0 讨论(0)
提交回复
热议问题