- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to find out version of "C" compiler on our sy...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:36 AM
01-07-2005 03:36 AM
Please assist.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:41 AM
01-07-2005 03:41 AM
SolutionDo this:
echo > /var/tmp/x.c
cc -V /var/tmp/x.c
swlist can tell you as well be you also have to look at the cumulative patches so cc -V is the definitive method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:41 AM
01-07-2005 03:41 AM
Re: Need to find out version of "C" compiler on our system
swlist | grep ANSI
"swlist" lists the software installed on the host, similar to Sun's pkginfo. If you run the above command and receive no output, either it's not installed or I've told you the wrong string (ANSI) to search for. I'm fairly sure I'm remembering correctly.
To see more info on the swlist command (there are interesting options and it will show you other software manipulation commands):
man swlist
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:49 AM
01-07-2005 03:49 AM
Re: Need to find out version of "C" compiler on our system
strings /usr/bin/cc
and it listed:
HP92453-01 A.11.01.21 HP C (Bundled) Compiler
So, I presume the above is our version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:58 AM
01-07-2005 03:58 AM
Re: Need to find out version of "C" compiler on our system
Don't expect it to be able to build more advanced stuff, like GNU utilities or Perl. It just won't.
You need an ANSI compiler for that. Either the (very good, but expensive) HP C-ANSI-C, or the (free and always improving) GNU gcc
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 04:02 AM
01-07-2005 04:02 AM
Re: Need to find out version of "C" compiler on our system
In either case, cc -V x.c (as long as you have a dummy source file) should have revealed the compiler version. You might have the C++ compiler (aCC) which also speaks ANSI C but swlist should have found it.
Do a "type aCC" to see if it is found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 04:08 AM
01-07-2005 04:08 AM
Re: Need to find out version of "C" compiler on our system
So, how much $$ am I looking at here to purchase a license?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 04:21 AM
01-07-2005 04:21 AM
Re: Need to find out version of "C" compiler on our system
http://software.hp.com/portal/swdepot/displayProductsList.do?category=DTDC
I would strongly consider using aCC rather than ANSI/C because aCC gives you C++ as well as ANSI/C -- but not K&R C. If you need to develop in ANSI and K&R C then you need ANSI/C. Most software vendors' products will work with either as long as your compiler version is >= to the version they specify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 04:56 AM
01-07-2005 04:56 AM
Re: Need to find out version of "C" compiler on our system
I myself use C-ANCI-C and if I have to do C++, I use GNU g++, which is free (See my webpage where all my GNU gcc ports include g++)
My HP ITRC site pages can be found at (please use LA as primary choice):
USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/
NL Hoofddorp http://www.cmve.net/~merijn/
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 06:47 AM
01-07-2005 06:47 AM