我刚刚设置了一个Ubuntu 16.04框,我正在尝试安装一些Perl模块。我启动了CPAN,它经历了自动配置程序。最后它抛出了一些有问题的消息:
Couldn't untar local-lib-2.000019.tar: 'Cannot allocate memory'
'YAML' not installed, will not store persistent state
HAARG/local-lib-2.000019.tar.gz
Had problems unarchiving. Please build manually
Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@INC contains: /home/steve/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base /home/steve/waternow) at /usr/share/perl/5.22/CPAN/FirstTime.pm line 1347.
当我重新启动它时,它提出了CPAN shell命令行,就像没有错。它是否配置正确,还是我还需要做其他事情?我不是Lunix noob,也不是专家。
除了CPAN之外,还有更好的选择在Ubuntu上安装Perl模块(例如Windows上的Activestate Perl Package Manager)吗?由于这样的经历,我从来都不喜欢CPAN。