1

emphasized textWhile installing perl module "Net::SSH::Perl" using perl -MCPAN -e "install Net::SSH::Perl" is not showing any error only Result:PASS but using cpan -D Net::SSH::Perl showing not installed. What is the reason for not getting installed.

3
  • 2
    I tried to install Net::SSH::Perl on Ubuntu 20.04, perl 5.30 with cpanm Net::SSH::Perl but the installation of the dependency Crypt::Curve25519 failed (I am looking into it) Commented Apr 24, 2020 at 15:33
  • See also this issue Commented Apr 24, 2020 at 19:35
  • 1
    You can just use cpan Net::SSH::Perl to install the module. Commented Apr 24, 2020 at 20:50

1 Answer 1

2

I was able to install the module after patching the dependent module Crypt::Curve25519 like this.

First create a patch 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;

Then, run:

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
Sign up to request clarification or add additional context in comments.

1 Comment

I'm trying to build this for a Docker container that only connects to one specific machine. Is this module truly needed or is there a way to skip this dependency and have it still "work". If for example, the host I'm connecting to does not use curve25519 in any way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.