小编Rém*_*one的帖子

如何使用 cpanm 更新 perl 模块

我尝试使用 cpanm 安装/更新 Perl 模块。但是,每个模块都失败了。

例如:

cpanm Config::General
--> Working on Config::General
Fetching http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-2.56.tar.gz ... OK
Configuring Config-General-2.56 ... OK
Building and testing Config-General-2.56 ... OK
Successfully installed Config-General-2.56 (upgraded from 2.52)
1 distribution installed
Run Code Online (Sandbox Code Playgroud)

所以,我预计 Config::General 的版本现在是 2.56,但是......:

perl -e 'use Config::General 2.56'
Config::General version 2.56 required--this is only version 2.52 at -e line 1.
Run Code Online (Sandbox Code Playgroud)

我尝试相同的登录 superU 但同样的问题...但是现在,我有 Perl lib

~/perl5/lib/perl5/和/usr/lib/perl/5.18/

我怎样才能正确更新 Perl 模块cpanm?


有关我的安装的一些信息:

$ perl -E'
   say "$_=$ENV{$_}" for qw( PERL_MM_OPT PERL_MB_OPT PERL5LIB …
Run Code Online (Sandbox Code Playgroud)

perl cpan module updates cpanm

2
推荐指数
1
解决办法
1245
查看次数

标签 统计

cpan ×1

cpanm ×1

module ×1

perl ×1

updates ×1