gccsolarisdowngrade

Degrade or install lower packages in solaris11


I was trying to install gcc-48 in solaris 11.

bash-4.4$ sudo pkg search gcc-48

INDEX ACTION VALUE PACKAGE

pkg.fmri set solaris/developer/gcc-48 pkg:/developer/gcc-48@4.8.2-11.4.0.0.1.9.0

It was present in the repo but while trying to install it

bash-4.4$ sudo pkg install -nv /developer/gcc-48

No updates necessary for this image.

It because already gcc-7.3 is installed.

Anyone knows how to degrade the gcc in solaris 11.4 . Thanks


Solution

  • GCC 4.8 is not supported on Solaris 11.4.

    Per Freeware Available in Oracle® Solaris 11.4:

    Oracle Solaris 11.4 Bundled Software Updates

    Table 1 Oracle Solaris 11.4 Compilers and Interpreters Freeware Versions

    Software      Version in Latest SRU   Version Update History
    Cython        0.28.2                  −
    gcc           5.5, 7.3, 9.2           SRU 14: Adds 9.2, removes 9.1
    Java          8                       −
    LLVM/Clang    6.0                     −
    PHP           7.1, 7.3                SRU 9: Removes 5.6 SRU 10: Adds 7.3
    Perl          5.22, 5.26              −
    Python        2.7, 3.4, 3.5, 3.7      SRU 12: Adds 3.7
    Ruby          2.5, 2.6                SRU 5: Adds 2.5 SRU 9: Adds 2.6 SRU 14: Removes 2.1, 2.3
    TCL/TK        8.6                     −
    

    You should be able to install GCC 5.5 or 9.1/9.2.