For many years any attempt at this for me was a 'no go' because libssh2 and a generic Solaris gcc setup simply didn't mix (we're talking older boxes, circa 2000 hardware on Solaris 8 here; maybe gcc 3.2 or so). Recently I became aware of the opencsw project which has nicely built packages for Solaris (including a 5.10 Perl) and though they don't support their Solaris 8 packages anymore, they still have them. One of the packages they have is a libssh2.

Net::SSH2 though doesn't make very well. perl Makefile.PL leaves a Makefile with LD='c compiler used to compile the perl' and other oddities (optimizations that gcc doesn't like, etc). I've cut and fudged with the Makefile to the point it would compile, but it doesn't test.

I asked on the chat channel; tye was quite a help. I thought I would post, so that this could be documented and perhaps some gurus at getting packages to compile and do so nicely could assist. Please understand that due to work, my reply rate might be very slow. But at this point, I have nothing to lose.


In reply to Net::SSH2 and Solaris by dwm042

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.