Subject: | Can't locate loadable object for module Crypt::OpenSSH::ChachaPoly in @INC |
Date: | Sun, 28 Aug 2016 13:33:20 -0500 |
To: | bug-Net-SSH-Perl [...] rt.cpan.org |
From: | Vincent <vince.perl [...] hightek.org> |
Hi.
There is already a ticket on this, Id: 115382
but I wanted to post additional information that might be of help and
I could not find any way to append to the existing ticket.
After just upgrading software on my machine that forced an upgrade to
Perl and p5-Net-SSH-Perl, I am suddenly getting this error. I even
tried going back to the previous versions of Perl and of p5-Net-SSH-Perl
but the bug was still there.
OS: FreeBSD 10.2 Release
Perl version: 5.20.3
p5-Net-SSH-Perl version: 2.01
The full error is
Can't locate loadable object for module Crypt::OpenSSH::ChachaPoly in
@INC (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.20
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach
/usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20
/usr/local/lib/perl5/site_perl/5.20/mach .) at
/usr/local/lib/perl5/site_perl/mach/5.20/Net/SSH/Perl/Cipher/ChachaPoly.pm
line 14.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/mach/5.20/Net/SSH/Perl/Cipher.pm
line 57.
I finally found a work around. In my code, prior to calling
$site->{ssh} = Net::SSH::Perl->new($site->{host}, %params);
I set
$params{cipher} = "arcfour";
and it worked. I tried setting the cipher to each of "blowfish-cbc" and
"3des-cbc", which the docs say is the default, but when I did, I got
this different error.
FATAL: key must be string scalar at
/usr/local/lib/perl5/site_perl/mach/5.20/Crypt/Cipher.pm line 43.