Share your knowledge at the LQ Wiki.
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, 11: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, 02: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 02:47 AM. Reason: extra
Old 06-30-2011, 11:15 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,126

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
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, 11: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 11:48 PM
how to install c compiler -gcc?? alifaziz Mandriva 3 08-22-2007 03:35 PM
Can't install GCC compiler!??!?! MickBurke Linux - Newbie 3 03-07-2005 03:53 PM
why i can't install gcc or any other C compiler? HoreC Debian 3 11-21-2004 12:51 PM
GCC Compiler Install Alpha-01 Linux - Newbie 6 10-03-2004 10:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 PM.

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