I need to compile a C program on SPARC T4-1 (Solaris 11) machine that has been deployed to customer network, and it no longer has access to the Internet. Originally during the setup, compilation tools, nor the system headers were installed, and now I'm having trouble compiling a C program.
I have installed a local repository, as per instructions around the Internet, and pkg pubisher
now shows:
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online file:///export/repoSolaris11/repo/
However, if I try installing gcc (package gcc-dev
, I think?), I a bunch of complaints from the package manager (This version is excluded by installed incorporation
), I have come to conclusion that it's because originally it was a factory install (the machine came setup from the Oracle, and it was not touched), and now I have tried adding a local repository, and the versions mismatch. Complete install attempt: http://pastebin.com/m3wazmU7
I thought of another way to install a C compiler would be the Solaris Studio IDE (on a DVD), and I have cc
now on the machine, but it's missing the system headers, so I cannot compile even a simple hello world. Attempting to install system/headers
results into very similar as with gcc-dev:
sudo pkg install system/header
Creating Plan /
pkg install: No matching version of system/header can be installed:
Reject: pkg://solaris/system/header@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184855Z
Reason: This version is excluded by installed incorporation
pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.0.9.0.5.1:20120705T180850Z
I'm not at all familiar with how solaris package management works, and I wonder if there is some way I could get rid of these incorporation messages ? Or could I just unzip the proper header files from somewhere, and compile the program against those headers ?
Thanks for any tips