How can you find out the version of xlC installed on AIX box

grobartn picture grobartn · Dec 6, 2010 · Viewed 20.4k times · Source

So this should be quite simple but just want to see if I got it right.

I am trying to find out what version of xlC compiler is installed on AIX box.

I tried xlC -v/xlc --version which is not supported by the compiler.

I tried lslpp -L | grep xlC

I get following output but it confuses me (i am releatively new to UNIX world)

  xlC.adt.include            8.0.0.0    C     F    C Set ++ Application
  xlC.aix50.rte              8.0.0.0    C     F    C Set ++ Runtime for AIX 5.0
  xlC.cpp                    6.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.cpp          6.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.rte          8.0.0.0    C     F    C Set ++ Runtime
  xlC.rte                    8.0.0.0    C     F    C Set ++ Runtime

This is list on installed packages on box but whats the significance of listing .cpp file.

And which version is on my box?

6.0 or 8.0

Thanks

Answer

Fred Larson picture Fred Larson · Dec 6, 2010

Try xlC -qversion