错误安装perl模块Net :: SSH :: Perl

问题描述 投票:1回答:1

强调文本使用perl -MCPAN -e "install Net::SSH::Perl"安装perl模块“ Net :: SSH :: Perl”时,仅Result:PASS不会显示任何错误,而使用cpan -D Net::SSH::Perl则表明未安装。没有安装的原因是什么。

perl cpan
1个回答
0
投票

我像这样修补从属模块Crypt::Curve25519之后,便能够安装该模块。

首先创建补丁Crypt-Curve25519-0.06-missing-version.patch

diff --git a/lib/Crypt/Curve25519.pm b/lib/Crypt/Curve25519.pm
index 686b706..d9c2b3d 100644
--- a/lib/Crypt/Curve25519.pm
+++ b/lib/Crypt/Curve25519.pm
@@ -1,4 +1,5 @@
 package Crypt::Curve25519;
+our $VERSION = 0.06;
 #ABSTRACT: Generate shared secret using elliptic-curve Diffie-Hellman function

 use strict;

然后,运行:

wget https://www.cpan.org/authors/id/S/SR/SREZIC/patches/Crypt-Curve25519-0.06-PR10-ANOTHERLINK.patch
git clone [email protected]:ajgb/crypt-curve25519.git
cd crypt-curve25519
git apply ../Crypt-Curve25519-0.06-missing-version.patch
git apply ../Crypt-Curve25519-0.06-PR10-ANOTHERLINK.patch
perl Makefile.PL
make  # No errors now
make test
make install
cpanm Net::SSH::Perl
© www.soinside.com 2019 - 2024. All rights reserved.