dbruk
asked on
Can't locate Net/SFTP.pm in
New user
I am getting the following error message:
Can't locate Net/SFTP.pm in @INC (@INC contains: ../lib.
/usr/lib/perl5/5.6.1/i586- linu
BEGIN failed—compilation aborted at …. line 3
line 3 has "use Net::SFTP;
use Net::SFTP;
$host = ' xxx';
$userb = ' yyy ';
$pass = ' zzz';
my $sftp = Net::SFTP->new($host);
$sftp->login($user, $pass);
Can anyone say what could be wrong? Need immediate answer
I am getting the following error message:
Can't locate Net/SFTP.pm in @INC (@INC contains: ../lib.
/usr/lib/perl5/5.6.1/i586-
BEGIN failed—compilation aborted at …. line 3
line 3 has "use Net::SFTP;
use Net::SFTP;
$host = ' xxx';
$userb = ' yyy ';
$pass = ' zzz';
my $sftp = Net::SFTP->new($host);
$sftp->login($user, $pass);
Can anyone say what could be wrong? Need immediate answer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or if you did install Net::SFTP, explain how you installed it.
Net::SMTP is a part of libnet perl module which can be downloaded from this site:
http://search.cpan.org/~gbarr/libnet/
You could also download Net::SMTP separately and put it together with your script in case if you don't have admin right on this server.
http://search.cpan.org/~gbarr/libnet/
You could also download Net::SMTP separately and put it together with your script in case if you don't have admin right on this server.
nochkin.
SMTP has nothing to do with SFTP
SMTP has nothing to do with SFTP
Tintin, you are right. I was playing with Net::SMTP just few minutes before this answer.
Anyway, it's just a missing module problem which can be installed using cpan shell or downloaded and installed manually from cpan.org or any mirror.
Anyway, it's just a missing module problem which can be installed using cpan shell or downloaded and installed manually from cpan.org or any mirror.