Discussion:
How to locate/use a C++ compiler on this AIX machine?
(too old to reply)
r***@gmail.com
2005-08-19 04:27:51 UTC
Permalink
I am really new at this, so any help would be great.

I am working on an aix 5.2 system and struggling to figure out if a C++
compiler (any kind) is available and how to invoke it. lslpp tends to
indicate that xlc is installed ok (see output below) and I also see xlc
related stuff under /usr/lpp. Does that mean xlc is installed ok and I
should be able to compile a C++ program. How do I invoke the compiler?
Tried xlc, xlC etc nothing works. Not even cc works on this machine. Is
it an issue with my enviornment? I tried make with a makefile that
references xlc, no luck, of course. How do I locate/use any C++
compiler on this machine?

TIA.


kt450:/usr/lpp>lslpp -h "*cpp*"
Fileset Level Action Status Date Time

----------------------------------------------------------------------------
Path: /usr/lib/objrepos
xlC.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:34:14

xlC.msg.en_US.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:39:01
Patrick Begou
2005-08-19 06:49:31 UTC
Permalink
Post by r***@gmail.com
I am really new at this, so any help would be great.
I am working on an aix 5.2 system and struggling to figure out if a C++
compiler (any kind) is available and how to invoke it. lslpp tends to
indicate that xlc is installed ok (see output below) and I also see xlc
related stuff under /usr/lpp. Does that mean xlc is installed ok and I
should be able to compile a C++ program. How do I invoke the compiler?
Tried xlc, xlC etc nothing works. Not even cc works on this machine. Is
it an issue with my enviornment? I tried make with a makefile that
references xlc, no luck, of course. How do I locate/use any C++
compiler on this machine?
TIA.
kt450:/usr/lpp>lslpp -h "*cpp*"
Fileset Level Action Status Date Time
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
xlC.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:34:14
This is C++ compiler.
Post by r***@gmail.com
xlC.msg.en_US.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:39:01
My C++ compiler is located in the default:
***@sge: whence xlC
/usr/vacpp/bin/xlC

Check you PATH variable. The name is xlC.

Patrick
Uli Link
2005-08-19 08:11:18 UTC
Permalink
Post by Patrick Begou
Post by r***@gmail.com
I am really new at this, so any help would be great.
I am working on an aix 5.2 system and struggling to figure out if a C++
compiler (any kind) is available and how to invoke it. lslpp tends to
indicate that xlc is installed ok (see output below) and I also see xlc
related stuff under /usr/lpp. Does that mean xlc is installed ok and I
should be able to compile a C++ program. How do I invoke the compiler?
Tried xlc, xlC etc nothing works. Not even cc works on this machine. Is
it an issue with my enviornment? I tried make with a makefile that
references xlc, no luck, of course. How do I locate/use any C++
compiler on this machine?
TIA.
kt450:/usr/lpp>lslpp -h "*cpp*"
Fileset Level Action Status Date Time
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
xlC.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:34:14
This is C++ compiler.
Nope.
This is only the C/C++ preprocessor which is like ld bundled with the O/S.
Post by Patrick Begou
Post by r***@gmail.com
xlC.msg.en_US.cpp
5.0.2.0 COMMIT COMPLETE 01/06/02
09:39:01
This is the NLS messages for the en_US locale for the preprocessor.

No C/C++ compiler installed via installp or rpm package.
--
Uli
Clive George
2005-08-19 09:31:02 UTC
Permalink
Post by r***@gmail.com
I am working on an aix 5.2 system and struggling to figure out if a C++
compiler (any kind) is available and how to invoke it. lslpp tends to
indicate that xlc is installed ok (see output below) and I also see xlc
related stuff under /usr/lpp. Does that mean xlc is installed ok and I
should be able to compile a C++ program. How do I invoke the compiler?
Tried xlc, xlC etc nothing works. Not even cc works on this machine. Is
it an issue with my enviornment? I tried make with a makefile that
references xlc, no luck, of course. How do I locate/use any C++
compiler on this machine?
On our aix 5.2 boxes, I need to set the path to include /usr/vac/bin, then
cc works. But as noted that's a C compiler, not C++.

When I've looked at wanting to do C++, I think it's come down to two
choices: Pay money for CSet++ or install gcc. Since I wasn't doing big stuff
anyway, I just gave up.

Disclaimer : Any or all of the above could be nonsense.

cheers,
clive
r***@gmail.com
2005-08-19 13:26:42 UTC
Permalink
Thanks for all the replies. I have to agree with Uli that whatever I
see with label xlc on my machine seems to be freebies that came with
OS, not the xlc compiler. xlc is sold separately, isn't it? Makes it
more likely that I don't have xlc they wouldn't have paid for it. I
tried a find on the entire system looking for *vac*, nothing turned up,
so I guess that seals it.

AIX 5.2 doesn't include an ANSI C++ compiler? How about a plain C
compiler?
r***@gmail.com
2005-08-19 13:32:31 UTC
Permalink
If I want to use a free compiler, is gcc a good one? And if I install
it on my machine, can I contain it within a folder, or does it spread
itself all over? I am experimenting and the sys admin will not like it
if gcc installs files all over the place.
Clive George
2005-08-19 13:43:47 UTC
Permalink
Post by r***@gmail.com
If I want to use a free compiler, is gcc a good one?
Seeing as how it's pretty much the standard compiler for an awful lot of
systems, I'd say yes :-)

cheers,
clive
Uli Link
2005-08-19 14:12:19 UTC
Permalink
Post by r***@gmail.com
If I want to use a free compiler, is gcc a good one?
It's free and on many platforms GCC is an excellent compiler suite.
AIX is *not* one of the good platforms of GCC :-(
Post by r***@gmail.com
And if I install
it on my machine, can I contain it within a folder, or does it spread
itself all over?
You can find packaged GCC binaries, so they can removed.
http://aixpdslib.seas.ucla.edu/
http://www.bullfreeware.com/
http://www-03.ibm.com/servers/aix/products/aixos/linux/


Else GCC usually installs only below one given directory.
Depending on which package you use, this dir may be shared with other
packages.
Post by r***@gmail.com
I am experimenting and the sys admin will not like it
if gcc installs files all over the place.
For some experiments GCC will be ok. As long as you don't use it for
performance evaluation of the pSeries platform. In the very most cases
IBM's VisualAge C++ or XL/C++ will produce much faster results.
--
Uli
Laurenz Albe
2005-08-19 14:13:22 UTC
Permalink
Post by r***@gmail.com
If I want to use a free compiler, is gcc a good one? And if I install
it on my machine, can I contain it within a folder, or does it spread
itself all over? I am experimenting and the sys admin will not like it
if gcc installs files all over the place.
You can install it while not being root, this maybe requires some
tar-ed form (or you manually extract the package you get).

For most package formats you can also list the contents before installing
and make sure it doesn't write where you don't want it to.

BTW, what is a folder?

Yours,
Laurenz Albe
Uli Link
2005-08-19 14:22:34 UTC
Permalink
Post by Laurenz Albe
BTW, what is a folder?
Something animated on a Windows Desktop?
--
Uli
r***@gmail.com
2005-08-21 15:52:48 UTC
Permalink
Thanks folks, this is awesome help. About "folder", I plead innocence
by virtue of decades of brainwashing from a certain bull in Washington
state. :)
Post by Uli Link
Post by Laurenz Albe
BTW, what is a folder?
Something animated on a Windows Desktop?
--
Uli
Loading...