I installed the Solaris Studio 12.3 on Solaris 10 OS but when I check the version but it is showing below result. It is installed under /opt/SolarisStudio12.3/bin so why wrong path is coming. I defined the path in .profile after that I can see now the correct path when I check $PATH /opt/SolarisStudio12.3/bin but still it is showing same path for which cc and cc -V as below. Can anyone please tell me?

which cc

cc -V
/usr/ucb/cc: language optional software package not installed

Your /usr/ucb/cc is probably a script that checks if /usr/ccs/bin/ucbcc is installed and then invokes it (or complains if not there, like in your case).

/usr/ccs/bin/ucbcc is part of the package unbundled C compiler, SPROcc. You are probably missing that.

  • Thanks. I checked the /usr/ccs/bin/ucbcc folder is exist but don't know how check. can you please tell me. – Agha Nawaz May 15 '13 at 6:48
  • I have no access to a SunOS system at the moment, so it is difficult to hand-hold. – Anthon May 15 '13 at 7:07

You need to run /opt/SolarisStudio12.3/bin/cc and never /usr/ucb/cc - the ucb script is an old compatibility wrapper for building SunOS 4 software that doesn't work with current Studio releases and was deleted from Solaris 11 and later.

Simplest is to ensure that /opt/SolarisStudio12.3/bin is in your $PATH environment variable ahead of /usr/ucb.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.