Operating System - HP-UX
1819684 Members
3435 Online
109605 Solutions
New Discussion юеВ

Version of C compiler on HPUX

 
panks
Regular Advisor

Version of C compiler on HPUX

How Can I check, which version of C compilers is installed in my system ?

Thanks
9 REPLIES 9
Jeeshan
Honored Contributor

Re: Version of C compiler on HPUX

run this command

#swlist -l product|grep Compiler
a warrior never quits
panks
Regular Advisor

Re: Version of C compiler on HPUX

Thats wrong, it don not show which version of C compiler is installed
Steven Schweda
Honored Contributor

Re: Version of C compiler on HPUX

"cc -v"?
Patrick Wallek
Honored Contributor

Re: Version of C compiler on HPUX

What information are you looking for from the version?

I did the following:

# swlist -l product |grep -i compiler
C-ANSI-C B.11.11.06 HP C/ANSI C Compiler
CPS B.11.11 Compiler Parallel Support Library
PHSS_28706 1.0 ANSI C compiler B.11.11.06 cumulative patch

That tells me I am running version B.11.11.06 of the C/ANSI C Compiler.

If I then do

[ root@hquwh55:/opt/ansic/bin ]
# what cc
cc:
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
LINT B.11.11.28706.GP CXREF B.11.11.28706.GP
HP92453-01 B.11.11.28706.GP HP C Compiler
$ Sep 8 2000 23:13:51 $


panks
Regular Advisor

Re: Version of C compiler on HPUX

Thanks Patric,

But then I think I am looking for wrong thing, because I want to know which version of ANSI C is installed in my system.
Here is the output

root@mrktst0u:/> swlist -l product | grep -i compiler
COMPLIBS B.11.23 Compiler Support Librarys
PHCO_31664 1.0 Japanese linker/compiler manpages
root@mrktst0u:/>

What does this means, I dont have any c compilers installed in the system, contemporary if you see

root@mrktst0u:/> swlist -l product | grep -i aC++
ACXX C.05.55 HP aC++
PHSS_35055 1.0 aC++ Runtime (IA: A.06.10, PA: A.03.71)
root@mrktst0u:/>

What is this, I thought I am having version 5.55 of c compiler, am I wrong.

Please correct me and give me the details.
This come as requirement of installing the 10.2 oracle and they need certain patches which I am not able to install, as It is saying these patches are for C compiler with version 6.0

Pls guide, I think now the scenario is clear to you
Patrick Wallek
Honored Contributor

Re: Version of C compiler on HPUX

panks
Regular Advisor

Re: Version of C compiler on HPUX

Thats fine patric, I understood that.
But can you clear my one doubt.

Like is there any differnce between the ansi c and C++ which I am having.
Because the command
# swlist -l product | grep -i compiler doesn't reply anything.

What I am trying to figure out is that, I have the same situation in almost all the servers, though they have ver 10.2 of oracle installed.

So can I proceed with oracle installation on these servers without having those patches and ansi c on system.

Re: Version of C compiler on HPUX

Are you intending to do development work using Oracle ProC or ProC++?

If the answer is no you DO NOT need to have any sort of ANSI C or C++ compiler installed, regardless of what the Oracle Installer or Oracle documentation states.

The compilers are only for when you are doing development work with Oracle ProC/ProC++

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Dennis Handly
Acclaimed Contributor

Re: Version of C compiler on HPUX

>How can I check, which version of C compilers is installed in my system?

For IPF: cc -V
For PA: cc -V -c foo.c

>it does not show which version of C compiler is installed

What do you see?
ACXX C.06.20 HP C/aC++ Compiler
C-ANSI-C C.06.20 HP C/aC++ Compiler

Note the version of the compiler is really A.06.20.

>I don't have any C compilers installed in the system

Possibly. But what it does mean is that you have an obsolete version that doesn't have a rationalized title as above, that you can search for.

>ACXX C.05.55 HP aC++

You have obsolete A.05.55.

>is there any difference between the ansi C and C++ which I am having.

Sure, one is C and the other is C++.

> swlist -l product | grep -i compiler >doesn't reply anything.

That's because the name is in the bundle in that obsolete version.
B3899BA C.05.55 HP C/ANSI C Developer's Bundle (S700)
B3901BA C.05.55 HP C/ANSI C Developer's Bundle (S800)
B3911DB C.05.55 HP aC++ Compiler (S700)
B3913DB C.05.55 HP aC++ Compiler (S800)

>So can I proceed with oracle installation on these servers without having those patches and ansi C on system.

As Duncan says, that's correct. The bundled C compiler is all that is needed to install Oracle.
If you need to install Oracle applications, that's a different story.