agangliu0400 发表于 2018-8-31 08:46:36

安装perl的CPAN模块整理

  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> install Module::CoreList
  Warning (usually harmless): 'YAML' not installed, will not store persistent state。
  如果报以上错误,则可以:
  #yum -y install *YAML*
  之后再运行
  # perl -MCPAN -e shell
  cpan> install Module::CoreList
  即可。

页: [1]
查看完整版本: 安装perl的CPAN模块整理