Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check for c compiler 3

Status
Not open for further replies.

nandkumar4aix

Technical User
Dec 27, 2000
72
SG
hi

i am having aix 4.3.2 inslalled on my all sp nodes.
i just wanted to check wheather c compiler is installed on these nodes or not . i tried to locate command "cc"
in /etc/bin & /etc/sbin but its not there.

i hav tried through smit also to list the installed software
but it doesnt work .

may be u can suggest me something.

bye
Regards
nandkumarg@visto.com
 
Hi Nandakumar !

You can try the following command

lslpp -l all |grep xlC


(The C in xlC is caps )
If you can find some filesets then you should be having
C for AIX compiler. Anyway this is how it is in my setup.
Hope it helps,
rajesh rajeshrcmc@hotmail.com
"Better to ask a question once and be thought a fool once, than never to ask and remain a fool forever"
 
hi
it worked ... it showed me some files ...
but i try to locate "cc" ... its not there...
now how do i compile my c programs..?

can u suggest something ....

nan
 
Well.. Nandakumar ,I don't have an indepth idea on this anyway u should be able to compile c programs using the following command

cc test.c (or) xlC test.c

where test.c is the c program, in my setup i have the cc program in /usr/bin/cc and also /usr/bin/xlC, u can find this using the command
which cc , and u will get an output if the c compiler is properly/completely installed in the system.If u want me to further clarify then can u post the list of filesets listed when u give the following command.
lslpp -l all |grep xlC
with regards,
Rajesh rajeshrcmc@hotmail.com
"Better to ask a question once and be thought a fool once, than never to ask and remain a fool forever"
 
hey rajesh ...
no i am not able to compile using xlC also.
here is a file set....
[aria]/# lslpp -l all|grep xlC
xlC.cpp 4.3.0.1 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 4.3.0.1 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 3.6.4.0 COMMITTED C Set ++ for AIX Application
xlC.rte 3.6.4.0 COMMITTED C Set ++ for AIX Application


please suggest something.

bye
nan

 
does the file:

/usr/lpp/xlC/bin/xlC

exist?
Mike
michael.j.lacey@ntlworld.com
 
Well .. i don't know what is in Mike's mind , but i shall put in my ideas , actually i have got the following xlC filesets in my machines
xlC.C 3.1.4.0 C C for AIX Compiler
xlC.C++.ascl.lib 3.1.4.0 C C Set ++ Application Support
xlC.C++.browser 3.1.4.0 C C Set ++ for AIX Browser
xlC.C++.cmp 3.1.4.0 C C Set ++ for AIX Compiler
xlC.C++.cmp.data 3.1.4.0 C C Set ++ for AIX Manual Pages
xlC.C++.collect.lib 3.1.4.0 C CSet ++ Collection Class
xlC.C++.collect.samples 3.1.4.0 C CSet++ Collection Classes
xlC.C++.collect.tutorial3.1.4.0 C CSet++ Collection Classes
xlC.C++.heapview 3.1.4.0 C C Set ++ for AIX Heapview
xlC.C++.iclui.lib 3.1.4.0 C C Set ++ Graphical User
xlC.C++.iclui.samples3.1.4.0 C C++ Graphical User Interface
xlC.C++.include 3.1.4.0 C C Set ++ for AIX Compiler
xlC.C++.lib 3.1.4.0 C C Set ++ for AIX Compiler
xlC.C++.tcov 3.1.4.0 C C Set ++ for AIX Test Coverage
xlC.C++.tutorial 3.1.4.0 C C Set ++ Tutorial
xlC.aix43.rte 4.0.2.1 C C Set ++ Runtime for AIX 4.3
xlC.cpp 4.3.0.1 C C for AIX Preprocessor
xlC.msg.en_US.C 3.1.4.0 C C for AIX Compiler Messages
xlC.msg.en_US.C++ 3.1.4.0 C C Set ++ for AIX Compiler
xlC.msg.en_US.cpp 4.3.0.1 C C for AIX Preprocessor Messages
xlC.msg.en_US.rte 4.0.2.0 C C Set ++ Runtime Messages--U.S.
xlC.rte 4.0.2.0 C C Set ++ Runtime

Comparing this with yours , i think u do not have all the filesets installed.Hope it helps
rajesh rajeshrcmc@hotmail.com
"Better to ask a question once and be thought a fool once, than never to ask and remain a fool forever"
 
That's pretty much what was in my mind actually, I wondered if the compiler was actually installed but I didn't have an AiX box in front of me so that I could list the filesets. Thanks Raj.
Mike
michael.j.lacey@ntlworld.com
 
hi mike & rajesh !!!
there is no dir bin under /usr/lpp/xlC
u can go thro.... following....

[aria]/# cd /usr/lpp/xlC
[aria]/usr/lpp/xlC# ls -l
total 16
drwxr-xr-x 3 bin bin 512 Dec 15 18:40 exe
drwxr-xr-x 6 bin bin 512 Dec 15 18:40 lib
[aria]/usr/lpp/xlC# ls bin
ls: 0653-341 The file bin does not exist.

SEE my intension is to hav c compiler to compile some files ... if u can help me judjing whether c ompiler is there or not... i will be able to that.

thanks
nan
 
Well Nandakumar !

I feel that u got a bare minimum support of c , which has come along with the operating system , to compile c programs , i think u should purchase IBM C compiler for AIX seperately from IBM and then install it so that you will have all those filesets which i mentioned above in your system. hope this clarifies !

regards,
rajesh rajeshrcmc@hotmail.com
"Better to ask a question once and be thought a fool once, than never to ask and remain a fool forever"
 
hai
To find the path for cc you can use the command type cc.

Usually it gives the path as /usr/vacpp/bin/cc. So you can use this path to compile a C program.

Hope this helps.
surya12
 
It was My understanding that if you are at AIX version 4.3.2 you cannot use
the C version 3.1.4 (the older version, used to be free) You had to upgrade
the C compiler when the system was upgraded? I assume you upgraded your system...from an earlier 4.1 or 4.2? or you found an old cd that had the old C code for the early 4.1 (when it was a free product and loaded it.) Either way, I do not think it will work at 4.3.2.

As stated above you can get the freeware gcc or
you can upgrade your c compiler to the newer version 4.0 or 5.0 of Visual Age
C compiler from your distributor. There is a cost for the C compiler when you went to version 4.3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top