Thanx a lot for your reply. I followed the steps but stll getting the same error. Here my script looks like..
#! usr/bin/perl use strict; use warnings; use Net::SFTP; use Net::SSH::Perl::Buffer; my $host = "*************"; my $userid = "****"; my $pwd = "******"; my $f = Net::SFTP->new($host) or die "couldn't connect"; $f->login($userid, $pwd) or die "couldn't login"; print "successfully logged in\n";
error: Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: /etc/perl +/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl +5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local +/lib/site_perl .) at /usr/local/share/perl/5.14.2/Net/SFTP/Buffer.pm +line 6. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/ +SFTP/Buffer.pm line 6. Compilation failed in require at /usr/local/share/perl/5.14.2/Net/SFTP +/Attributes.pm line 7. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/ +SFTP/Attributes.pm line 7. Compilation failed in require at /usr/local/share/perl/5.14.2/Net/SFTP +.pm line 8. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Net/ +SFTP.pm line 8. Compilation failed in require at ankur_ftp.pl line 5. BEGIN failed--compilation aborted at ankur_ftp.pl line 5.
beacuse of the error in very first line I installed Net::SSH::Perl::Buffer module too. But didn't work..Could you please tell me in detail what needs to be done here...
In reply to Re^2: Not able to use Net::SFTP module.
by Ankur_kuls
in thread Not able to use Net::SFTP module.
by Ankur_kuls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |