LinuxQuestions.org
Visit Jeremy's Blog.
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


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

Rep: Reputation: Disabled
How to install a C compiler in Red Hat?


Sir my name is mallesh. I'm a member in your website. I have faced one problem in red hat linux 5.0. Recently I have installed redhat linux 5.0 in my system by vmware software. It installed successfully but i am facing one problem. when i am typing small c language program in vi editor. It will show one error what that means,
bash : cc compiler not found. I can't understand. Sir plz help me. Thanks in advance.
 
Old 06-19-2011, 12:25 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi,

Okay...you make things way too difficult for yourself. VI is good, but not (in my opinion) for development...at least go for Bluefish (there are others/better ones, but it's a good start), okay, now...

Quote:
cc compiler not found
...is what it says, you do not have a compiler installed on the system.

A compiler is not installed by default (not on my distro) so you'll need to install that, and the headers, first...

Luck

Thor
 
Old 06-19-2011, 01:33 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Quote:
Originally Posted by mallesh View Post
bash : cc compiler not found. I can't understand. Sir plz help me. Thanks in advance.
BASH, the shell program that you are using at the time, has been asked to do something for you. That involves using the cc program. It has failed to find the cc program. This is probably because the cc program is not installed, but it could be because the program is installed and not in the path, or the user trying to perform the operation may not have the permission to use it.

Now that you understand the message, what are you going to do about it?

Quote:
...red hat linux 5.0...
Presumably, not Red Hat 5.0, but Red Hat Enterprise Linux (RHEL) 5.0?

Quote:
Distribution: I am a friendly person.
Que?
 
Old 06-19-2011, 03:03 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by Thor_2.0 View Post
Hi,

Okay...you make things way too difficult for yourself. VI is good, but not (in my opinion) for development...at least go for Bluefish (there are others/better ones, but it's a good start)
.
It may be difficult to learn, but it my opinion it's easier to use than most GUI editors once you have learned it.

vi is perfectly good for programming (although I would recommand Vim, it has some extra useful features). After getting used to it and learning how to edit multiple documents, I think that it's much beter than using the mouse to navigate documents.

Last edited by MTK358; 06-19-2011 at 03:04 PM.
 
Old 06-19-2011, 03:13 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by mallesh View Post
my name is mallesh.
Welcome to LQ.

Quote:
Originally Posted by mallesh View Post
I'm a member in your website.
Of course, how else would you be able to post here?

Quote:
Originally Posted by mallesh View Post
I have faced one problem in red hat linux 5.0.
I hope you mean "Red Hat Enterprise Linux 5.0". Red Hat Linux is extremely outdated now.

Also, if it's RHEL, you should be paying for it. If you don't want to pay, get CentOS. It's a free version of RHEL with branding removed.

Quote:
Originally Posted by mallesh View Post
bash : cc compiler not found. I can't understand. Sir plz help me. Thanks in advance.
You don't have a C compiler installed.

This is for Fedora (which is Red Hat-based), so I guess it should work:

Code:
yum groupinstall "Development Tools"
 
  


Reply


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
During Red Hat Linux 9 install: error "No devices found to install Red Hat Linux" rbradtx Linux - Newbie 11 06-25-2010 04:55 PM
installing (executing) ggc compiler and wxWidgets on Red Hat Linux 4 Mihir V Patankar Linux - Newbie 2 05-26-2009 04:36 PM
Need help building x86_64 Cross compiler on x86 linux (Red Hat) torque_dwf Linux - Software 4 01-08-2009 03:37 AM
Red Hat 9.1 C Compiler mtbikerj Linux - Software 1 09-24-2003 11:53 AM


All times are GMT -5. The time now is 04:41 PM.

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