1

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?

Community
  • 1
  • 1
kec
  • 11
  • 2
  • You ran `pkg install gcc-3` as root, or used `sudo`? Alternatively, are you running in a zone? Or booting off a CD/DVD image? – Andrew Henle Feb 18 '16 at 17:23
  • I used sudo and received the above message. I don't know if I'm running in a zone, how would I check. I just opened the terminal and typed the command in. – kec Feb 18 '16 at 17:25
  • 1
    Did you go through an install process into your VM? From what you've posted, it looks like you're running openindiana on a Virtual Box VM. If you didn't go through an installation process, you're probably running off the CD/DVD image, which would explain the "read-only file system" error. The install process appears to be here: http://wiki.openindiana.org/oi/Installing+OpenIndiana – Andrew Henle Feb 18 '16 at 17:27
  • This was the problem, I was still running from the disk image. Thank you so much! – kec Feb 18 '16 at 17:41

0 Answers0