Ask Your Question

How to get GCC in fedora 19?

asked 2013-07-10 23:41:53 -0500

Sudarshan gravatar image

updated 2013-07-28 05:43:18 -0500

FranciscoD_ gravatar image

I have installed Fedora 19 on my machine. when i am using terminal for c program compilation with gcc. next line says gcc command is not found! although its embedded with current version then why i am not getting gcc command?

Help plz about any configuration need...


edit retag flag offensive close merge delete


Here it shows error after password inseration as

Error: Cannot retrieve metalink for repository : fedora/19/i386. Please verify its path & try again.

while i switched to main root "/"

what is next?

Sudarshan gravatar imageSudarshan ( 2013-07-11 00:09:27 -0500 )edit

please change your repo to, btw you have internet connection, right?

surbakti gravatar imagesurbakti ( 2013-07-11 03:33:53 -0500 )edit

sudo yum clean all; sudo yum install gcc. Please ensure that you have a working internet connection while using these commands. There should be no need to change anything in your repos. You can also use the package manager if you're not comfortable with using yum from the command line.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-07-11 05:15:39 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-11 03:38:15 -0500

unclechu gravatar image

Just install gcc by root:

sudo yum install gcc

If you need to compile C++ projects:

sudo yum install gcc-c++
edit flag offensive delete link more

answered 2013-07-10 23:54:02 -0500

you can use YUM to install gcc on your computer, from terminal

su -c "yum install gcc"
edit flag offensive delete link more

Question Tools


Asked: 2013-07-10 23:41:53 -0500

Seen: 60,563 times

Last updated: Jul 28 '13