| Author |
Error while compilation --usage of ftp or sftp in perl
|
|
| Gangadhara Bhavirisetty 2007-02-10, 7:55 am |
| Hi,
While compiling the perl script to ftp the files to remote server, I'm
getting the following error. Can you please advice the reason and
solution as well?
Can't locate Net/sftp.pm in @INC (@INC contains:
/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi /opt/perl/lib/5.8.3
/opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi
/opt/perl/lib/site_perl/5.8.3 /opt/perl/lib/site_perl .)
Code snippet in the beginning of the script:
-------------------------------------------------------------
#!/usr/bin/perl -w
use strict;
use Net::sftp;
use File::Basename;
--------------------------------------------------------------
Thank you,
Gangadhar
Hyperion DBA
412-553-3395
| |
| Zentara 2007-02-10, 7:55 am |
| On Fri, 9 Feb 2007 17:02:18 -0500, Gangadhara.Bhavirisetty@alcoa.com
("Bhavirisetty, Gangadhara \(TCS\)") wrote:
>Hi,
>
>While compiling the perl script to ftp the files to remote server, I'm
>getting the following error. Can you please advice the reason and
>solution as well?
>
>Can't locate Net/sftp.pm in @INC (@INC contains:
>/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi /opt/perl/lib/5.8.3
>/opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi
>/opt/perl/lib/site_perl/5.8.3 /opt/perl/lib/site_perl .)
>
>Code snippet in the beginning of the script:
>-------------------------------------------------------------
>#!/usr/bin/perl -w
>
>use strict;
>use Net::sftp;
>use File::Basename;
>--------------------------------------------------------------
It's Net::SFTP
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
|
|
|
|
|
|
|
|
|
|
|
|