尝试安装Net :: OpenSSH但是为依赖项找回无效版本

时间:2015-01-11 22:15:30

标签: perl ssh versioning perl-module

我正在使用一些perl 5.8.8遗留代码,我通常会使用perl -MNet::OpenSSH -e 'print "worked \n"'检查已安装的软件包

如果没有,则说明:

Can't locate Net/OpenSSH.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).
        BEGIN failed--compilation aborted.

这是正常的。然后我运行cpanm并安装它。但是,通过这个OpenSSH模块,我得知某些依赖项不是有效版本。

kristen:/web# cpanm Net::OpenSSH
install is up to date. (0.01)
--> Working on Net::OpenSSH
Fetching http://www.cpan.org/authors/id/S/SA/SALVA/Net-OpenSSH-0.62.tar.gz ... OK
Configuring Net-OpenSSH-0.62 ... OK
Failed to clean-up 2 metadata. Errors:
'version=HASH(0x8eb66f4)' for 'Test::More' is not a valid version. (prereqs -> runtime -> requires -> Test::More) [Validation: 2]
'version=HASH(0x8eb6700)' for 'ExtUtils::MakeMaker' is not a valid version. (prereqs -> configure -> requires -> ExtUtils::MakeMaker) [Validation: 2]
'version=HASH(0x8eb69f4)' for 'ExtUtils::MakeMaker' is not a valid version. (prereqs -> build -> requires -> ExtUtils::MakeMaker) [Validation: 2]

我使用cpanm upgrade Test::More没有解决该模块的问题所以我认为我需要更低的版本号。那么如何查看使用Net :: OpenSSH需要哪些版本?

1 个答案:

答案 0 :(得分:2)

升级cpanm然后安装模块解决了这个问题。