Net-SFTP - Installing Net::SFTP on Windows (ActiveState Perl)

Posted on Fri Sep 8 12:56:57 2006 by migas
Installing Net::SFTP on Windows (ActiveState Perl)
Hi All, I'm trying to use the Net::SFTP to implement secure ftp support into my open source perl backup program (http://migas.kicks-ass.org/index.php?pag=en.myapps&subpag=simplebackup).

Since this is a cross platform program i would first (since it's harder) to add the Net::SFTP module to my Windows XP perl and use it there.

ActiveState does not distribute this module so i had to get it from compiled versions on the net... i have manage to installed it using the activestate ppm manager, all "appeared" to go well, files and directories where created on my perl directories, libs where created under the Net (Net::) directory... but the perl programs keep fail to detect and use the module.

This works.... (FTP.pm)
eval {
require Net::FTP; #attempt to detect if the sftp modulo is installed
};
if ($@) {
print "ftp is not found\n";
}

This does not work (SFTP.pm)
eval {
require Net::SFTP; #attempt to detect if the sftp modulo is installed
};
if ($@) {
print "sftp is not found\n";
}

Both FTP.pm files and SFTP.pm files are found on C:\Perl\site\lib\Net

FTP module is found and works SFTP is never found WHY ????

Any help would be great THANKS !!
Miguel Angelo - Migas
Write a response