Need help installing 'xlc' on AIX


 
Thread Tools Search this Thread
Operating Systems AIX Need help installing 'xlc' on AIX
# 1  
Old 10-04-2008
Bug 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
# 2  
Old 10-05-2008
xlC will be already there in the AIX.

Do

Code:
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.
# 3  
Old 10-05-2008
Need help installing 'xlc' on AIX

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

Regards,
Safir29
# 4  
Old 10-05-2008
Quote:
Originally Posted by safir29
Thanks for your reply. It's not a PATH issue. xlC binary is not being installed as part of the compiler.
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
# 5  
Old 10-09-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

New to AIX need help Installing/Upgrading Samba on AIX 7.1?

Hello, I am trying to update Samba on my AIX 7.1 system as there is an issues with it, the smbd process coredumps and I have had no luck figuring it out why. My approach is to try to re-install a newer samba and I have found the latest 3.x package for samba in ppc.rpm format at perlz.org ... (6 Replies)
Discussion started by: c3rb3rus
6 Replies

2. AIX

AIX xlc compiler vs gcc

Hello, We are migrating some applications from previously running on an AIX system to a Linux RedHat system. I was tasked with recompiling some of the code. Unfortunatly I am a big novice on this. So i have the commands used to compile the code with xlc compiler in the AIX environment and i am... (0 Replies)
Discussion started by: spooksman
0 Replies

3. UNIX for Advanced & Expert Users

XLC compiler: enterprise edition VS XLC for AIX

Who can explain in a few words the difference between XLC for AIX and XLC enterprise Edition for AIX (0 Replies)
Discussion started by: fvaltat1
0 Replies

4. AIX

xlc question on AIX

Problem when compiling c-source with xlc it will generate some other files .lst .call. This kind of files is generated on the current directory. Question Can I influence the directory where the .lst and .call is generated. What i want is a dir stucture like this: project |---c-source... (0 Replies)
Discussion started by: corley
0 Replies

5. AIX

AIX Xlc compiler

Hi Team I have a native applicaiton built on AIX using the xLC v8 Which could be the possible impacts from a code change point of view if I'll compile with the xLC v10? Thanks Marco (0 Replies)
Discussion started by: antcos
0 Replies

6. AIX

Installing jboss on aix

Hi, anybody knows how to configure and install jboss on aix. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. AIX

Aix xlc interesting SEGV on exit

Hello all, One of the application we port to Aix from linux Segmentation faults when it exits. Here is part of backtrace of SEGV: (dbx) where splay(??, ??, ??) at free_y(??, ??) at free_common(??) at .... exit(??) at ... Application seem to perform everything expected well and... (1 Reply)
Discussion started by: qrio.qrio
1 Replies

8. AIX

aix xlc

Hi guys, I need to compile sap libraries, installed make, automake, gcc, libstc libgcc and everything I used to install on linux when compiling when i run make, it aborts with the error msg /usr/bin/sh: xlc: not found. I see the binary xlc is missing lslpp -l | grep -i xlc ... (3 Replies)
Discussion started by: funksen
3 Replies

9. AIX

Help on Installing AIX 5.3

Please tell me how to install AIX 5.3 on P5 520 server via Console. Please mail me at sunnyanthony@gmail.com please CEO us standing.... sunny (0 Replies)
Discussion started by: sunnyanthony
0 Replies

10. Programming

AIX- xlc and cc

when i compile with Xlc i sometimes get the following Error: (S) Initialization between types "int" and "struct MskTtimerData*" is not allowed. when i compile with cc with the same Flags, i only get a (W) with the same message, but it compiles fine. How can i get the Xlc to 'ignore' the... (3 Replies)
Discussion started by: Lazzar
3 Replies
Login or Register to Ask a Question