I finally got Net::OpenSSH to install but now there seems to be a missing dependency when I try to use it.

unable to load Perl module IO::Pty: Can't locate IO/Pty.pm in @INC (@I +NC contains: /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_per +l /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/ +perl/csw /opt/csw/share/perl/csw /opt/csw/lib/perl/5.10.1 /opt/csw/sh +are/perl/5.10.1 .) at (eval 14) line 1. at /opt/csw/share/perl/site_perl/Net/OpenSSH.pm line 917.

If I try to install IO:Pty I get another error complaining about my 'cc' installation.

cpan[1]> install IO::Pty Reading '/usr/local/home/myuser/.cpan/Metadata' Database was generated on Tue, 15 Mar 2016 18:17:02 GMT Running install for module 'IO::Pty' Checksum for /usr/local/home/myuser/.cpan/sources/authors/id/T/TO/TODD +R/IO-Tty-1.12.tar.gz ok Scanning cache /usr/local/home/myuser/.cpan/build for sizes ...................................................................... +......DONE DEL(1/3): /usr/local/home/myuser/.cpan/build/Net-OpenSSH-0.70-4mwi2l DEL(2/3): /usr/local/home/myuser/.cpan/build/Net-OpenSSH-0.70-ARY6NC DEL(3/3): /usr/local/home/myuser/.cpan/build/Bundle-CPAN-1.862-7FqW4K Configuring T/TO/TODDR/IO-Tty-1.12.tar.gz with Makefile.PL Now let's see what we can find out about your system (logfiles of failing tests are available in the conf/ dir)... ERROR: cannot run the configured compiler '/opt/SUNWspro/bin/cc' (see conf/compilerok.log). Suggestions: 1) The compiler '/opt/SUNWspro/bin/cc' is not in your PATH. Add it to the PATH and try again. OR 2) The compiler isn't installed on your system. Install it. OR 3) You only have a different compiler installed (e.g. 'gcc'). Either fix the compiler config in the perl Config.pm or install a perl that was built with the right compiler (you could build perl yourself with the available compiler). Note: this is a system-administration issue, please ask your local admin for help. Thank you. Warning: No success on command[/opt/csw/bin/perl Makefile.PL] TODDR/IO-Tty-1.12.tar.gz /opt/csw/bin/perl Makefile.PL -- NOT OK Failed during this command: TODDR/IO-Tty-1.12.tar.gz : writemakefile NO '/opt +/csw/bin/perl Makefile.PL' returned status 512

I do have 'cc' installed but it is in /usr/ucb/cc'. However, when I tried changing the Config.pm file to the correct path, it gave me the exact same error, just with the new path listed.

Any idea how to resolve this?


In reply to IO::Pty wont install, so I cant use Net::OpenSSH by jtzako

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.