good chemistry is complicated,
and a little bit messy -LW
Net::SSH2 and Solarisby dwm042 (Priest)
|on Nov 10, 2010 at 15:04 UTC
dwm042 has asked for the wisdom of the Perl Monks concerning the following question:
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.