Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5

 

001、perl -MCPAN -e shell命令报错: Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 

(以上报错提示没有安装CPAN模块) 

 

002、解决方法

yum -y install perl-CPAN   ## 安装perl-CPAN模块

 

003、测试安装效果

(base) [root@pc1 software]# perl -MCPAN -e shell

 。

 

参考:

01、https://blog.csdn.net/qq_43138237/article/details/128241327

 

posted @ 2023-11-09 22:36  小鲨鱼2018  阅读(380)  评论(0编辑  收藏  举报