如何找到AIX盒上安装的xlC版本

时间:2022-08-27 06:59:01

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.

我试图找出AIX盒上安装的xlC编译器的版本。

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

我尝试了xlC -v / xlc --version,编译器不支持。

I tried lslpp -L | grep xlC

我试过lslpp -L | grep xlC

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

我得到以下输出,但它让我感到困惑(我是UNIX世界的新手)

  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.

这是安装包上的列表,但是列出了.cpp文件的重要性。

And which version is on my box?

我的盒子上有哪个版本?

6.0 or 8.0

6.0或8.0

Thanks

3 个解决方案

#1


19  

Try xlC -qversion

试试xlC -qversion

#2


1  

Try lslpp -l | grep -i vacpp and check for lines about the C/C++ Compiler:

试试lslpp -l | grep -i vacpp并检查有关C / C ++编译器的行:

vacpp.cmp.core            9.0.0.11  APPLIED    IBM XL C/C++ Compiler
vacpp.cmp.core             9.0.0.0  COMMITTED  IBM XL C/C++ Compiler

This means I have 9.0 installed with a subsequent PTF added. My corresponding xlc version information looks like this:

这意味着我安装了9.0,并添加了后续的PTF。我对应的xlc版本信息如下所示:

% xlc -qversion=verbose
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0011
Driver Version: 09.00(C/C++) Level: 090810
C Front End Version: 09.00(C/C++) Level: 090730
C++ Front End Version: 09.00(C/C++) Level: 090730
High-Level Optimizer Version: 09.00(C/C++) and 11.01(Fortran) Level: 090812
Low-Level Optimizer Version: 09.00(C/C++) and 11.01(Fortran) Level: 090902

Also the xlc/rte entries you found are for the C/C++ Runtime, which will depend on the OS version and are not as closely linked to the compiler version. This source of confusion is also mentioned in the link below.

您找到的xlc / rte条目也适用于C / C ++运行时,这取决于操作系统版本,并且与编译器版本没有密切关联。这种混淆的来源也在下面的链接中提到。

See http://www-01.ibm.com/support/docview.wss?uid=swg21652272

#3


0  

cc –qversion or xlc -qversion or xlC –qversion

#1


19  

Try xlC -qversion

试试xlC -qversion

#2


1  

Try lslpp -l | grep -i vacpp and check for lines about the C/C++ Compiler:

试试lslpp -l | grep -i vacpp并检查有关C / C ++编译器的行:

vacpp.cmp.core            9.0.0.11  APPLIED    IBM XL C/C++ Compiler
vacpp.cmp.core             9.0.0.0  COMMITTED  IBM XL C/C++ Compiler

This means I have 9.0 installed with a subsequent PTF added. My corresponding xlc version information looks like this:

这意味着我安装了9.0,并添加了后续的PTF。我对应的xlc版本信息如下所示:

% xlc -qversion=verbose
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0011
Driver Version: 09.00(C/C++) Level: 090810
C Front End Version: 09.00(C/C++) Level: 090730
C++ Front End Version: 09.00(C/C++) Level: 090730
High-Level Optimizer Version: 09.00(C/C++) and 11.01(Fortran) Level: 090812
Low-Level Optimizer Version: 09.00(C/C++) and 11.01(Fortran) Level: 090902

Also the xlc/rte entries you found are for the C/C++ Runtime, which will depend on the OS version and are not as closely linked to the compiler version. This source of confusion is also mentioned in the link below.

您找到的xlc / rte条目也适用于C / C ++运行时,这取决于操作系统版本,并且与编译器版本没有密切关联。这种混淆的来源也在下面的链接中提到。

See http://www-01.ibm.com/support/docview.wss?uid=swg21652272

#3


0  

cc –qversion or xlc -qversion or xlC –qversion