LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install a C compiler in Red Hat? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-a-c-compiler-in-red-hat-887186/)

mallesh 06-19-2011 12:10 PM

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.

ButterflyMelissa 06-19-2011 12:25 PM

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

salasi 06-19-2011 01:33 PM

Quote:

Originally Posted by mallesh (Post 4390023)
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?

MTK358 06-19-2011 03:03 PM

Quote:

Originally Posted by Thor_2.0 (Post 4390035)
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.

MTK358 06-19-2011 03:13 PM

Quote:

Originally Posted by mallesh (Post 4390023)
my name is mallesh.

Welcome to LQ.

Quote:

Originally Posted by mallesh (Post 4390023)
I'm a member in your website.

Of course, how else would you be able to post here?

Quote:

Originally Posted by mallesh (Post 4390023)
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 (Post 4390023)
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"


All times are GMT -5. The time now is 05:30 PM.