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!!


In reply to Can't install Net::SSH2 on win32 (libssh2, openssl) by clutch2k3

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.