Operating System - HP-UX
1833055 Members
2592 Online
110049 Solutions
New Discussion

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

 
Viswanadhan
Regular Advisor

How to know whether ANSI C / any compiler was installed on HP UX 11.0

Hi Admins,

How to identify that whether ANSI C / any compiler was installed on HP UX 11.0 with "swlist" command.

Regards,
Viswa.
7 REPLIES 7
OldSchool
Honored Contributor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

how 'bout "swlist | grep -i compil"

???
Sandman!
Honored Contributor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

# swlist | grep C/ANSI
James R. Ferguson
Acclaimed Contributor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

Hi Viswa:

You will have a symlink for '/usr/bin/cc' pointing to '/opt/ansic/bin/cc' if an ANSI C compiler has been installed.

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

Hi,

I got the following ouput
# swlist |grep -i compil
/home/root> swlist |grep -i compil
PHKL_15547 1.0 Recompile with optimization for performance.

Is it correct ?

Regards,
Viswa.
Viswanadhan
Regular Advisor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

ns
Dennis Handly
Acclaimed Contributor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

You need to look for:
HP C/ANSI C Developer's Bundle
rick jones
Honored Contributor

Re: How to know whether ANSI C / any compiler was installed on HP UX 11.0

I've always liked:

what `which cc`

myself - note the orientation of the single quotes above
there is no rest for the wicked yet the virtuous have no pillows