Ask Your Question


asked 2012-09-23 19:12:07 -0500

AMIT gravatar image

updated 2012-09-24 02:49:19 -0500

hhlp gravatar image

i have installed fedora i am unable to compile c,c++,java programs.. e.g. after writing c program i do da following bt it dont help me...

[amit@localhost ~]$ vi c.c
[amit@localhost ~]$ cc c.c
bash: cc: command not found
[amit@localhost ~]$ gcc c.c
bash: gcc: command not found
[amit@localhost ~]$ g++ c.c
bash: g++: command not found
[amit@localhost ~]$

suggest me what to be done...

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-09-24 02:21:37 -0500

davidva gravatar image

Hi, I've installed all the necessary to compile, in the following manner.


yum -y groupinstall "Development Tools" "Legacy Software Development" "Development Libraries" 

yum -y install kernel-headers kernel-devel hg git

don't worry

edit flag offensive delete link more


development-tools is only necessary for create RPM packages on Fedora and doesn''t need to compile a simple c,c++ program...

hhlp gravatar imagehhlp ( 2012-09-24 14:15:07 -0500 )edit

answered 2012-09-24 00:26:35 -0500

jmt gravatar image
yum install gcc

should get you going.

edit flag offensive delete link more

Question Tools


Asked: 2012-09-23 19:12:07 -0500

Seen: 2,710 times

Last updated: Sep 24 '12