Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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