LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 06-29-2011, 10:09 PM   #1
mallesh
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
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Duplicate of http://www.linuxquestions.org/questi...hi-sir-887186/
And :
http://www.linuxquestions.org/questi...x5-0-a-887315/

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
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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: http://www.linuxquestions.org/questi...hi-sir-887186/
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 AM.

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