Need help installing 'xlc' on AIX

Hello,
I'm getting "xlc: not found" error compiling code using 'make oracle' command on IBM AIX. C/C++ compiler is installed, but 'xlc' still missing. Could you please tell me which OS package contains the 'xlc' executable?

$ [ ]> make oracle
xlc -qmkshrobj -e MQStart -L/usr/mqm/lib -lmqmcs_r -L/usr2/oracle/product/9.2.0/lib32 -lclntsh -o /var/mqm/exits/jdbcora jdbcora.o
xlc: not found
make: 1254-004 The error code from the last command is 1.

Stop.

Regards,
safir29

xlC will be already there in the AIX.

Do

lslpp -l | grep xlC

And see what you get.

You probably need to set PATH of xlC so that compiler where the lib is located.

Thanks for your reply. It's not a PATH issue. xlC binary is not being installed as part of the compiler.

Regards,
Safir29

That is exactly firdousamirs point: check if there is the compiler installed. If it isn't, there is no point in finding a solution for your problem other than: install a compiler, then you'll have one.

I hope this helps.

bakunin

Try this

lslpp -l |grep -i xlc
$lslpp -l |grep -i xlc
xlC.adt.include 8.0.0.0 COMMITTED C Set ++ Application
xlC.aix50.rte 9.0.0.1 COMMITTED XL C/C++ Runtime for AIX 5.2
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 9.0.0.1 COMMITTED XL C/C++ Runtime
xlC.rte 9.0.0.1 COMMITTED XL C/C++ Runtime

$which cc
/usr/vac/bin/cc

If you type in :

$cc -version
exec: export(export,XL_CONFIG=/etc/vac.cfg:cc,NULL)
exec: /usr/bin/pg(/usr/bin/pg,/usr/lib/nls/msg/en_US/vac.txt,NULL)

xlc(1) IBM (October 2005) xlc(1)

NAME
xlc, cc, c89, c99 and related commands - invoke the IBM XL
C compiler

SYNTAX
<invocation-command> [ <option> | <inputfile> ] ...

     The invocation commands are:
     xlc, cc, c89, c99, xlc128, cc128, c89_128, c99_128,
     optionally followed by _r, _r4, or _r7.

DESCRIPTION
xlc and related commands compile C source files. They
also process assembler source files and object files. The
compiler calls the link editor to produce a single
executable or shared library, unless you specify the

This is a partial listing.. but you should see the full listing if you have c installed.