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

I have not used Solaris for a while, but IIRC, /usr/ucb/cc was a dummy script that would just tell you to install the real compiler when invoked.

You should be able to download the SUNWspro compiler package from the Oracle website and install it on your system.

Alternatively you may be able to find a precompiled version of IO::Tty on some public repository for Solaris packages.