尝试安装 Net::OpenSSH 但取回依赖项的无效版本
Trying to install Net::OpenSSH but getting back invalid version for dependencies
我正在使用一些 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?
升级 cpanm 然后安装模块解决了这个问题。
我正在使用一些 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?
升级 cpanm 然后安装模块解决了这个问题。