Can't locate local/lib.pm in @INC at /usr/share/perl/5.14/CPAN/FirstTime.pm

前端 未结 3 2015
既然无缘
既然无缘 2021-02-08 18:06

I am trying to use Perl the first time on my system which is Ubuntu 12.04. I have Perl v.5.14.2 installed.
I looked up how to install Perl modules, so I sta

3条回答
  •  逝去的感伤
    2021-02-08 18:29

    Several New OS's force (like Redhat 7) force to check presence of local::lib in the perl version, actually its a good thing this enables to users to use CPAN and add,experiment and enjoy new modules to be used with the perl without waiting for sitewide installation (like a root user). By default local::lib looks for $HOME/perl5 dir where the user's local or downloaded modules are located. If you see this problem then you have to do following

    1. sudo su - whatever_user_owns_perl
    2. whatever_perl_install_path/cpan install local::lib

提交回复
热议问题