I was trying to install Go (golang) on a newly minted Solaris 11.3 VM (downloaded from Oracle), but I was getting the following error:
root@solaris:/export/home/jdeppe# pkg install golang-15
Creating Plan (Running solver): /
pkg install: No matching version of developer/golang-15 can be installed:
Reject: pkg://solaris/developer/golang-15@1.5-5.12.0.0.0.95.0
Reason: No version matching 'require' dependency runtime/perl-520@5.20.1,5.11-5.12.0.0.0.90.0 can be installed
----------------------------------------
Reject: pkg://solaris/runtime/perl-520@5.20.1-5.12.0.0.0.90.0
Reason: No version matching 'optional' dependency runtime/perl-512@5.12.5,5.11-5.12.0.0.0.69.0 can be installed
----------------------------------------
Reject: pkg://solaris/runtime/perl-512@5.12.5-5.12.0.0.0.90.0
pkg://solaris/runtime/perl-512@5.12.5-5.12.0.0.0.95.0
Reason: This version is excluded by installed incorporation consolidation/userland/userland-incorporation@0.5.11-0.175.3.1.0.3.0
----------------------------------------
Reject: pkg://solaris/runtime/perl-520@5.20.1-5.12.0.0.0.95.0
Reason: No version matching 'optional' dependency runtime/perl-512@5.12.5,5.11-5.12.0.0.0.69.0 can be installed
----------------------------------------
After some googling I finally ran: pkg change-facet facet.version-lock.runtime/perl-512=false
, after which I was able to install golang-15. Sweet!!
Can someone explain what I just did :). I know this question sounds weird, but I managed to solve it as I was writing it (I hadn't figured out the change-facet
stuff). I'd still like to understand the implications of this action.
Could (should) I have solved this differently?