1.执行命令:
#perl -MCPAN -e shell
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .).
时候报这个错误,则可以:
#yum -y insall perl-CPAN
2.再执行:
# perl -MCPAN -e shell
之后就可以安装perl的模块了。
3.安装模块: Module::CoreList
cpan[1]> install Module::CoreList
Warning (usually harmless): 'YAML' not installed, will not store persistent state。
如果报以上错误,则可以:
#yum -y install *YAML*
之后再运行
# perl -MCPAN -e shell
cpan[1]> install Module::CoreList
即可。
转载于:https://blog.51cto.com/alsww/1121635