8

I've installed Solaris 11 x86 (in a qemu environment) from here: http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html

I've untar'd into /opt Sun Studio 12.3 x86 for Solaris 11 from here: http://www.oracle.com/technetwork/server-storage/solarisstudio/downloads/index.html

but the compiler can't find system headers like sys/types.h or inttypes.h or anywhere which may define int32_t. The dtrace.h header for example relies on sys/types.h, and I can't find it. As if I'm missing a package or something. I've never worked with anything other than Linux (many distros, including from source), and I'm lost. What am I missing?

Z.T.
  • 939
  • 8
  • 20

1 Answers1

12

You just need to install the package containing these header files:

# pkg install system/header
jlliagre
  • 29,783
  • 6
  • 61
  • 72
  • 2
    Where should I have RTFM'd this? What else is missing in the default install? – Z.T. Mar 17 '12 at 01:20
  • Studio 12.3 documentation predates Solaris 11 and hasn't this information documented. The issue is you installed from a tar file so there is no dependency checking. Should you have installed from the recently released solarisstudio publisher, I guess these header files would have been automatically installed. – jlliagre Mar 17 '12 at 01:51
  • 1
    Also need to install these if using gcc from the opencsw project - I could not find this documented anywhere – harmic Jan 18 '18 at 23:45