Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Net::SSH2 and Solaris

by dwm042 (Priest)
on Nov 10, 2010 at 15:04 UTC ( #870601=perlquestion: print w/ replies, xml ) Need Help??
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.

Comment on Net::SSH2 and Solaris
Re: Net::SSH2 and Solaris
by Anonymous Monk on Nov 10, 2010 at 15:38 UTC
    It's not clear from your description (to me at least) which perl you did use for running perl makefile.PL. The system perl (which, IIRC, was v5.005_03 at the time of Solaris 8), a self-built perl, or one from opencsw?

    Such info (including the output of perl -V) plus an exact sequence of steps together with any errors, etc. would greatly help anyone trying to help you... ("cut and fudget with the Makefile" isn't really reproducible... :)

Re: Net::SSH2 and Solaris
by Utilitarian (Vicar) on Nov 10, 2010 at 16:54 UTC
      The problem with sun freeware is that they depend on a gcc compiler that locates in /usr/local and would trash the already existing gcc there. That said, the perl in /usr/local already has a working Net::SFTP and the bugs in that are why I want a Solaris Net::SSH2. Net::SSH::Perl bugs are the causes of my problems.

      David.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://870601]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-09-16 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (4 votes), past polls