![终端警告或错误](https://linux22.com/image/185128/%E7%BB%88%E7%AB%AF%E8%AD%A6%E5%91%8A%E6%88%96%E9%94%99%E8%AF%AF.png)
每次我打开终端时,我都会在终端上收到以下消息
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)"
如果您需要它,请修复它的路径或重新安装它。