每次我打开终端时,我都会在终端上收到以下消息
Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@INC contains: /home/punit/perl5/lib/perl5/x86_64-linux-thread-multi /home/punit/perl5/lib/perl5 /home/punit/anaconda3/lib/site_perl/5.26.2/x86_64-linux-thread-multi /home/punit/anaconda3/lib/site_perl/5.26.2 /home/punit/anaconda3/lib/5.26.2/x86_64-linux-thread-multi /home/punit/anaconda3/lib/5.26.2 .).
BEGIN failed--compilation aborted.
这件事是需要担心还是只是警告?
我该如何解决?
答案1
您的.bashrc
或类似的文件可能已被编辑以支持本地::lib,但同时环境也发生了变化。如果不需要local::lib
,只需删除相应的部分,它应该看起来像这样
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
如果您需要它,请修复它的路径或重新安装它。