Originally posted by: Ray Kivisto
Usually that error message occurs when there are one or more compiler packages not currently installed.
The V12.1 compiler on AIX was the final version that installed to '/usr/vac'. Starting with V13.1.0, the compiler installs to '/opt/IBM/xlC/V.R.M' (where V.R.M corresponds to the compiler version, release, and modification number). It was also the first release that allows you to have multiple compiler versions (V.R.M's) installed simultaneously to the default location.
I expect you have V12.1 partially installed, if you need to use V12.1, please send me the output of 'lslpp -l vac\* xl\*', or you can debug which file is missing by running the compiler with 'truss /usr/vac/bin/xlc_r ...' (truss comes from the AIX OS fileset 'bos.sysmgt.serv_aid').
To check if you have V13.1.0 installed, try running:
/opt/IBM/xlC/13.1.0/bin/xlC -qversion
or
lslpp -l xl\*
#C/C++andFortran#Ask-Question-Here--General-Compiler-Q-and-A