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