Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 06-29-2011, 10:09 PM   #1
LQ Newbie
Registered: Jun 2011
Location: Hyderabad
Distribution: I am a friendly person.
Posts: 4

Rep: Reputation: Disabled
how to install gcc compiler

I have recentally installed red hat linux5.0 in my sys. I wrote a simple 'C' language program in vi editor.I faced one problem "Bash : cc command not found". plz help me.
Old 06-30-2011, 01:42 AM   #2
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 780
Blog Entries: 6

Rep: Reputation: 75
put back the linux installer, find the filename call gcc* inside the installer and install it

go to folder which contain gcc and execute as following

rpm -ivh gcc*

Last edited by routers; 06-30-2011 at 01:47 AM. Reason: extra
Old 06-30-2011, 10:15 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,040

Rep: Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456
Duplicate of
And :

The command : cat /etc/redhat-release
.. will show the name of your OS : Probably 'Redhat Enterprise EL 5.x'.
Redhat 5.0 is something else.

The command : # 'yum install gcc-c++' will install a working "/usr/bin/gcc".
And 'cc' is a link to /usr/bin/gcc .

Old 06-30-2011, 10:22 AM   #4
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Discussion continues in your first thread:

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install gcc and g++ compiler... Carunkumar SUSE / openSUSE 3 01-03-2011 10:48 PM
how to install c compiler -gcc?? alifaziz Mandriva 3 08-22-2007 02:35 PM
Can't install GCC compiler!??!?! MickBurke Linux - Newbie 3 03-07-2005 02:53 PM
why i can't install gcc or any other C compiler? HoreC Debian 3 11-21-2004 11:51 AM
GCC Compiler Install Alpha-01 Linux - Newbie 6 10-03-2004 09:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration