in reply to IO::Pty wont install, so I cant use Net::OpenSSH

Let me preface my following comments with the statement that it has been many years since I have managed Solaris systems, so it is possible that /opt/csw contains your locally built perl installation. Assuming that that is not the case...

I would also recommend not messing with the system (or in this case csw application's) installed modules with direct CPAN installs. Instead, use the mechanism provided by the supplier of the /opt/csw installation of perl, or build your own Perl.

If you directly install modules into this perl installation, you risk breaking other vendor supplied applications that rely on a certain state of that perl installation. Your updates can break the vendor environment, or vendor updates can break your environment.

Instead, use something like perlbrew + gcc (or, if you have a compiler, the compiler that you have installed) to install a locally managed perl installation.

--MidLifeXis

  • Comment on Re: IO::Pty wont install, so I cant use Net::OpenSSH

Replies are listed 'Best First'.
Re^2: IO::Pty wont install, so I cant use Net::OpenSSH
by jtzako (Sexton) on Mar 18, 2016 at 15:59 UTC
    My perl does seem to be in the csw directory, but since I am the only person using this server for anything it doesnt hurt to mod it however I need I think. Right now the only perl even in use on it is the one I'm trying to get to work with OpenSSH but having a heck of a time getting things installed.
      Do you actually have a functioning C compiler installed on that machine - one that you have verified as being capable of compiling C programs ?

      I gather that perl -V reports '/opt/SUNWspro/bin/cc' (or, at least, would have reported that before you amended Config.pm).
      It's best to use the compiler that built perl (and 'perl -V' identifies that compiler), but if you have another functioning C compiler you could give it a try.
      Just cd to any IO-Pty build directory you find in /usr/local/home/myuser/.cpan/build and run:
      make realclean perl Makefile.PL CC=/usr/bin/cc (or wherever) make test make install
      A better solution would be to follow salva's advice if possible.

      Cheere,
      Rob