RE: [Ssh-sftp-perl-users] sftp in windows environment
Brought to you by:
dbrobins
From: Hudson, C. <Chr...@bs...> - 2004-07-29 08:05:49
|
I'm not sure of the exact solution to this, but I can give you a pointer. It is something to do with the version of the include file fcntl.h it finds when it compiles the package as you install it. Check your INCLUDE path and all versions of fcntl.h that you have. I found that with visual c++ 6.0 installed that it was compiling against a subset of the full UNIX fcntl.h #defines. I may have fixed it using gnu c++ to get this file, or maybe it was in the platform SDK or DDK... not sure. Hope this helps. Chris -----Original Message----- From: ssh...@li... [mailto:ssh...@li...] On Behalf Of Michael Ragsdale Sent: 28 July 2004 15:36 To: ssh...@li... Subject: [Ssh-sftp-perl-users] sftp in windows environment I'm trying to convert all of my scripts from Net-FTP over to Net-SFTP on ActiveState 5.6.1 and I'm having some difficulty. I installed Net-SFTP successfully and had a port mapping issue. I edited the winnt/system32/drivers/etc/services file and fixed that issue by adding ssh 22/tcp to the file. Then I received the following error message: Your vendor has not defined Fcntl macro F_SETFL, used at H:/Perl/site/lib/Net/SSH/Perl.pm line 214. After some research, I found that I need to install Net-SSH-W32Perl that is supposed to contain a workaround. I've installed it successfully, but I'm not sure how to force Net-SFTP to use that module as opposed to the Net-SSH-Perl module. I'm still getting the same error message. After some more googling, I edited the /Perl/site/lib/Net/SSH/Perl.pm file and commented out the call to fcntl and now I'm getting the following error: Key class 'Net::SSH::Perl::Key::DSA' is unsupported: Can't locate Crypt/DSA.pm in @INC (@INC contains: lib D:/Perl/lib D:/Perl/site/lib .) at D:/Perl/site/lib/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1. BEGIN failed--compilation aborted at D:/Perl/site/lib/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1. Compilation failed in require at (eval 36) line 1, <GEN0> line 1. BEGIN failed--compilation aborted at (eval 36) line 1, <GEN0> line 1. When I search, I cannot find anything regarding this key class error. Does anyone have any sample code for appending files using Net-SFTP in a Windows environment or have a workaround for this? -Mike ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users . ----------------------------------------------------------------------- Information in this email may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return e-mail and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone. Please note we reserve the right to monitor all e-mail communication through our internal and external networks. ----------------------------------------------------------------------- |