I installed gcc 4 on Solaris 11 using

pkg-get gcc4g++

near the end of the installation process it showed a warning that some script didn't run succesfully (which I didn't write down unfortunately). Now some include files are missing (eg. math_iso.h).

I would like to try to re-install the package, but I haven't found a command to do that.


I don't have Solaris 11 to try it out, but "pkgrm" is the Solaris 10 way to do it.

  • pkgrm doesn't find the gcc4g++ package. It seems only to work on packages installed with pkg, not with pkg-get. – Gene Vincent Apr 14 '11 at 22:46
  • pkgrm is for packages installed with pkgadd, the old SVR4 package system used on Solaris 10 and earlier. pkg-get is a wrapper around the SVR4 package system used by the Blastwave & OpenCSW projects. pkg is part of the new Solaris 11 packaging system. – alanc Apr 15 '11 at 1:46
  • 1
    pkgrm worked, but the package that pkg-get called gcc4g++ was called CSWgcc4g++ for pkgrm. Thanks! – Gene Vincent Apr 15 '11 at 5:55
  • If you were using pkg-get, you were probably using OpenCSW. Each package is using two names: a pkgname and a catalogname. The pkgname is what Solaris uses to identify packages. Catalogname is what pkg-get uses to identify packages when downloading them from the catalog. – automatthias Apr 17 '11 at 8:36

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.