I've been trying to install Net::SSH2 for 2 days without success.
I'm using Win XP and Perl 5.8(Strawberry). I tried 5.10 but then I read somewhere on this site that there might be a compatibility issue w/Net::SSH2 & 5.10 so I uninstalled 5.10 and installed 5.8.
This was the error when using CPAN, CPANP or a manual ‘perl make.pl’:
“The libssh2 library is required by this module. If you don't have it +, you can download it from http://www.libssh2.org; you may also need +OpenSSL, which can be obtained from http://www.openssl.org. Debian: sudo aptitude install libssh2-1-dev OpenSUSE: sudo zypper in libssh2-1 libssh2-devel Can't link/include ‘libssh2.h’, 'ssh2'
But then I copied \libssh2-0.12\include\libssh2.h to C:\strawberry\c\include and now I get the same error except the last line is:Can't link/include 'ssh2'
I've read this post: http://www.perlmonks.org/?node_id=581715, but the command in the post doesn’t work on WinXP. Here's an excerpt from the 'INSTALL' file in the libssh2-0.12 folder:
! * Run: ./configure (passing additional options as desired) In addition the the standard set of ./configure options (e.g. --pr +efix) ! * --with-openssl=[DIR] ! ./configure will attempt to locate OpenSSL in a number of defa +ult locations: /usr/local/ssl /usr/local /usr /usr/local/openssl !
The “INSTALL” file included with libssh2 doesn’t apply to WinXP . . .
Also, I'm not familiar with any of the file extensions in the libssh2-0.12\win32 folder: ".mk, .dsp, .dsw, & .h". Are these extensions for WinXP?
Any help is greatly appreciated!!
Can't install Net::SSH2 on win32 (libssh2, openssl)
Select or Download Code
Replies are listed 'Best First'.
|Re: Can't install Net::SSH2 on win32 (libssh2, openssl)|
by syphilis (Chancellor) on Dec 26, 2009 at 22:27 UTC
by clutch2k3 (Initiate) on Dec 27, 2009 at 00:01 UTC
|Try Cygwin ... Re: Can't install Net::SSH2 on win32 (libssh2, openssl)|
by clp (Friar) on Dec 27, 2009 at 00:22 UTC
by clutch2k3 (Initiate) on Dec 27, 2009 at 03:20 UTC
by clp (Friar) on Dec 27, 2009 at 19:00 UTC