Operating System - HP-UX
1834107 Members
2100 Online
110063 Solutions
New Discussion

Re: re-installing standard c compiler

 
SOLVED
Go to solution
otukile
Frequent Advisor

re-installing standard c compiler

I am having slight problems with the standard bundled c compiler. Is it possible to reinstall just the compiler?
Don't panic
4 REPLIES 4
SANTOSH S. MHASKAR
Trusted Contributor

Re: re-installing standard c compiler

Pl. mention version of OS?
What do u mean only c compiler?
I assume it to be /usr/bin/cc i.e. HP_UX C compiler. It is not possible to re-install a single file. U have to reinstall the entire C compiler package. Use sam for this .

1] Remove the package C compiler by selecting it from sam.(Note : Before removing a package make sure if u have the HP_UX software CDs having HP_UX C Compiler package.)

sam--Software Management--Remove Software--
Remove Local Host Software--Mark C compiler package to Remove--Actions-Remove

this will remove the package.

2] Now re-install it.

sam--Software Management--Install Software to Local Host--Source Depot Type--Select the source depot where u have C compiler package(i.e. ur HP_UX software CD or a local depot) and Install it.

Thats all.


-Santosh
Stefan Farrelly
Honored Contributor
Solution

Re: re-installing standard c compiler

I think it is. You need to reinstall these 4 filesets from the OS-Core (hpux install) CD;

OS-Core.C-KRN B.11.11 C-KRN
OS-Core.C-MIN B.11.11 C-MIN
OS-Core.C-MIN-32ALIB B.11.11 HP-UX minimal 32 bit user libraries
OS-Core.C-MIN-64ALIB B.11.11 C-MIN-64ALIB

These 4 filesets make up the standard bundled c compiler.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Elmar P. Kolkman
Honored Contributor

Re: re-installing standard c compiler

You could also use swinstall to browse to the package (probably a SD package within a bundle), change options to reinstall if same version exist (and probably some more options in that), mark and install the package.
Every problem has at least one solution. Only some solutions are harder to find.
otukile
Frequent Advisor

Re: re-installing standard c compiler

Thanks you people for all the help. I was able to try these on the test server and it seems to work. Keep fingers crossed for problematic production server!

2 things that I have noted:
1. SAM is not the efficient tool to use for this excercise. It does not zoom in on what you want to install/uninstall. Knowing the filesets plus using swinstall and swremove commands do the job.

2. The OS-Core.C-KRN fileset cannot be uninstalled. Its one of the core files needed during reboot

Cheers to all

Don't panic