- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- gcc version in red hat Linux
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-10-2010 10:34 AM
тАО05-10-2010 10:34 AM
gcc version in red hat Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 11:09 AM
тАО05-10-2010 11:09 AM
Re: gcc version in red hat Linux
It's possible to download a GCC source kit,
and build and install a GCC that way, and
that wouldn't appear in any "rpm" report.
Is there some actual problem which you are
trying to solve?
> [...] gcc -v [...] rpm -qa|grep gcc [...]
Call me curious, but what do they say?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 11:32 AM
тАО05-10-2010 11:32 AM
Re: gcc version in red hat Linux
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-59)
$rpm -qa|grep gcc
gcc-3.4.6-3
so which version of gcc is: 3.4.6-3 or 3.2.3?
Any idea to share?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 12:18 PM
тАО05-10-2010 12:18 PM
Re: gcc version in red hat Linux
Could be both, but I'd bet that you have (at
least) "gcc version 3.2.3 20030502 (Red Hat
Linux 3.2.3-59)" installed. GCC is seldom
confused about its own version.
which gcc
echo $PATH
Multiple versions of GCC can be installed in
different places. A bare "gcc" will get you
the first "gcc" found on your PATH. I don't
run Red Hat, so I know nothing, and among the
things I don't know is where "rpm" would have
installed the "gcc" from your gcc-3.4.6-3
kit.
find /usr -type f -name gcc
(Or anyplace else you think likely.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 05:21 AM
тАО05-11-2010 05:21 AM
Re: gcc version in red hat Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 10:32 AM
тАО05-13-2010 10:32 AM
Re: gcc version in red hat Linux
# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
# rpm -qa | grep gcc
gcc-4.1.2-46.el5_4.2
OS is RHEL 5.4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2010 07:11 AM
тАО05-14-2010 07:11 AM