LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 11: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, 02:42 AM   #2
routers
Member
 
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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
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, 11:22 AM   #4
colucix
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: 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 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

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

All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration