HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc compilers
Operating System - HP-UX
1834404
Members
2743
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-26-2002 07:55 PM
09-26-2002 07:55 PM
gcc compilers
Hi,
I would like to find the version of gcc compiler. I did a gcc -v and it displayed a version of gcc from the default location at /usr/bin/gcc. i.e :
gcc -v
Reading specs from /usr/bin/gcc/3.1/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/specs
Configured with:../gcc-3.1/configure --host=hppa2.0w-hp-hpux11.00 ...(and configuration settings continues ...)
However, I do have some other gcc compilers of different versions stored in some other locations, but I'm not sure where.
I would like to locate the gcc 2.95.1 version compiler.
Is there a way to use the "find" utility to search for a version of a tool e.g gcc?
Or do I need a script to do this? If so, could someone show me how I could write the script to locate for the different versions of gcc, or any other tools for that matter?
Could someone help me out?
Thanks.
I would like to find the version of gcc compiler. I did a gcc -v and it displayed a version of gcc from the default location at /usr/bin/gcc. i.e :
gcc -v
Reading specs from /usr/bin/gcc/3.1/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/specs
Configured with:../gcc-3.1/configure --host=hppa2.0w-hp-hpux11.00 ...(and configuration settings continues ...)
However, I do have some other gcc compilers of different versions stored in some other locations, but I'm not sure where.
I would like to locate the gcc 2.95.1 version compiler.
Is there a way to use the "find" utility to search for a version of a tool e.g gcc?
Or do I need a script to do this? If so, could someone show me how I could write the script to locate for the different versions of gcc, or any other tools for that matter?
Could someone help me out?
Thanks.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 08:03 PM
09-26-2002 08:03 PM
Re: gcc compilers
I'd just do a find looking for your gcc and the do a 'gcc -v' usr the full path to the files it finds.
An example:
# find /dir -name gcc -print
/dir/dir1/gcc
/dir/dir2/gcc
Then just do a:
# /dir/dir1/gcc -v
# /dir/dir2/gcc -v
An example:
# find /dir -name gcc -print
/dir/dir1/gcc
/dir/dir2/gcc
Then just do a:
# /dir/dir1/gcc -v
# /dir/dir2/gcc -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 08:24 PM
09-26-2002 08:24 PM
Re: gcc compilers
Patrick,
Thanks for the swift reply. However, the find utility also produces other results which are not in the match :
/stor/local/generic/build/vdce_ct/x/test
open /stor/local/generic/.writable/csd/md6ra/2001
find: cannot open /stor/local/generic/class
find: cannot open /stor/local/generic/skel/projects/csh/RCS
find: cannot open /stor/local/generic/skel/old
find: cannot open /stor/local/generic/ftp/bin
/stor/local/hp700_ux110/gnu/bin/gcc
/stor/local/hp700_ux110/gnu/cygnus/progressive-95q2/H-hppa1.1-hp-hpux9.05/bin/gcc
/stor/local/hp700_ux110/gnu/cygnus/progressive-95q1/H-hppa1.1-hp-hpux/bin/gcc
I tried removing lines begining with "find: cannot ...", using the following 2 methods but it did not work:
# find / -name gcc -exec grep -v "find: cannot" {} \;
OR:
#find / -name gcc -print |grep -v "find: cannot"
Could you help me out?
Thanks.
Thanks for the swift reply. However, the find utility also produces other results which are not in the match :
/stor/local/generic/build/vdce_ct/x/test
open /stor/local/generic/.writable/csd/md6ra/2001
find: cannot open /stor/local/generic/class
find: cannot open /stor/local/generic/skel/projects/csh/RCS
find: cannot open /stor/local/generic/skel/old
find: cannot open /stor/local/generic/ftp/bin
/stor/local/hp700_ux110/gnu/bin/gcc
/stor/local/hp700_ux110/gnu/cygnus/progressive-95q2/H-hppa1.1-hp-hpux9.05/bin/gcc
/stor/local/hp700_ux110/gnu/cygnus/progressive-95q1/H-hppa1.1-hp-hpux/bin/gcc
I tried removing lines begining with "find: cannot ...", using the following 2 methods but it did not work:
# find / -name gcc -exec grep -v "find: cannot" {} \;
OR:
#find / -name gcc -print |grep -v "find: cannot"
Could you help me out?
Thanks.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP