Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Net::SFTP in perl

by vetrivel (Sexton)
on Jun 23, 2009 at 10:16 UTC ( #773940=perlquestion: print w/ replies, xml ) Need Help??
vetrivel has asked for the wisdom of the Perl Monks concerning the following question:

use Net::SFTP ; $host = "Hostname" ; %args = ( "user" , "vetri" , "password" , "vetri" , "debug" , "true" ) ; my $sftp = Net::SFTP->new($host , %args); $sftp->put("2", "8");

I got below error while running this above program in perl 5.6.1

Key class 'Net::SSH::Perl::Key::DSA' is unsupported: unknown import: lib GMP at.BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.1/Crypt/DSA/K.Compilation failed in require at /usr/lib/perl5/site_perl/5.6.1/Crypt/DSA.pm li.BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.1/Crypt/DSA.p.Compilation failed in require at /usr/lib/perl5/site_perl/5.6.1/Net/SSH/Perl/Ke.BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.1/Net/SSH/Per.Compilation failed in require at (eval 25) line 1, <GEN0> line 1. BEGIN failed--compilation aborted at (eval 25) line 1, <GEN0> line 1.

Comment on Net::SFTP in perl
Download Code
Re: Net::SFTP in perl
by targetsmart (Curate) on Jun 23, 2009 at 10:21 UTC
    Out of your 16 writeups, 14 are related to Net::SFTP, I suspect that you may be using an old version of OS which has old version of perl with old version of modules, and you are just trying to install a new version of CPAN module and just wanted that module to do your work successfully like a magic, it can't, please try to upgrade your OS/Perl/Modules first, otherwise you will be getting all these compatibility problems all the times.


    Vivek
    -- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
Re: Net::SFTP in perl
by davorg (Chancellor) on Jun 23, 2009 at 10:32 UTC

    It looks like either a bad installation of Net::SFTP or an incompatibility between Net::SFTP and your version of Perl.

    Perl 5.6.1 is really rather old. Is there a reason why you don't upgrade to something that was release less than eight years ago?

    --

    See the Copyright notice on my home node.

    Perl training courses

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://773940]
Approved by targetsmart
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-07-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls