I'm (unsuccessfully) trying to get GCC installed on Solaris 11.3 but am running into a lot of issues. My current issue is that I'm unable to install the package "pkg://solaris/system/header".
Everytime I try to install (pkg install system/header) I get the below error:
root@Sola:~# pkg install -nv system/header Creating Plan (Solver setup): - pkg install: No matching version of system/header can be installed: Reject: pkg://email@example.com to pkg://firstname.lastname@example.org Reason: This version is excluded by installed incorporation email@example.com
And this also shows that I definitely don't have any "system/header" packages installed:
root@Sola:~# pkg list -fa system/header NAME (PUBLISHER) VERSION IFO system/header 11.4-126.96.36.199.1.15.0 --- system/header 0.5.11-0.175.3.1.0.3.0 --- system/header 0.5.11-0.175.2.0.0.42.2 --- system/header 0.5.11-0.175.1.0.0.24.2 --- system/header 0.5.11-0.175.0.10.1.0.0 --- system/header 0.5.11-0.175.0.0.0.2.1 --- system/header 0.5.11-0.151.0.1 ---
Also here's the "pkg entire" file to show the my system version:
root@Sola:~# pkg info entire Name: entire Summary: entire incorporation including Support Repository Update (Oracle Solaris 188.8.131.52.0). Description: This package constrains system package versions to the same build. WARNING: Proper system update and correct package selection depend on the presence of this incorporation. Removing this package will result in an unsupported system. For more information see: https://support.oracle.com/rs?type=doc&id=2045311.1 Category: Meta Packages/Incorporations State: Installed Publisher: solaris Version: 0.5.11 (Oracle Solaris 184.108.40.206.0) Build Release: 5.11 Branch: 0.175.3.17.0.5.0 Packaging Date: Fri Feb 17 02:04:57 2017 Last Install Time: Sun Mar 12 07:33:24 2017 Size: 5.46 kB FMRI: pkg://firstname.lastname@example.org,5.11-0.175.3.17.0.5.0:20170217T020457Z
All I need to do is be able to compile some code on this machine.
EDIT: Thanks for the tip, below is the output from pkg publisher. As mentioned I've been having a lot of trouble trying to install GCC (with similar "incorporation" errors being given), so maybe these issues are related?
root@Sola:~# pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://pkg.oracle.com/solaris/release/
EDIT 2: Is there any (easy) way to somehow standardize the entire system or bring all basic system packages up/down to a standard level where they are all compatible? I'm not sure why it's so difficult to install what I thought would be basic system packages most distro's are normally shipped with :(