I downloaded oracle VM virtual box and the openindiana distribution of solaris. I tired to run gcc but it said "command not found".
I found instructions for installing gcc here Installing GCC on Oracle Solaris 11 but when I run something like pkg install gcc-3 it gives the message:
pkg install: Could not complete the operation on /var/pkg/lock: read-only filesystem.
Can anyone tell me how I can get gcc running on this setup?