Hi,

I want to use the Net::SSH2 Package...but this depends on the "libssh2" library...which depends on openSSL!

Soo, because im a bit nooby in those compile and build stuff i need help!!

What I know so far: Compiling of libssh2 is possible with mingw and msys... "./configure" runned succesfully, but "make" command gave some errors:

hostkey.c:416: error: syntax error before string constant hostkey.c:426: error: syntax error before '*' token hostkey.c: In function `libssh2_hostkey_methods': hostkey.c:429: error: `_libssh2_hostkey_methods' undeclared (first use + in this function) hostkey.c:429: error: (Each undeclared identifier is reported only onc +e hostkey.c:429: error: for each function it appears in.) hostkey.c: At top level: hostkey.c:438: error: syntax error before "const" hostkey.c:439: error: syntax error before '*' token hostkey.c: In function `libssh2_hostkey_hash': hostkey.c:441: error: `hash_type' undeclared (first use in this functi +on) hostkey.c:447: error: `LIBSSH2_HOSTKEY_HASH_SHA1' undeclared (first us +e in this function) hostkey.c:448: error: `session' undeclared (first use in this function +) hostkey.c:451: error: `NULL' undeclared (first use in this function) make[2]: *** [hostkey.lo] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1
what to do?

In reply to SSH2 Module on Windows by bgi

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.