Ask Your Question
1

How to get GCC in fedora 19?

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

Sudarshan gravatar image

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

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...

Sud

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

please change your repo to http://fpaste.org/24503/, btw you have internet connection, right?

surbakti gravatar imagesurbakti ( 2013-07-11 03:33:53 -0600 )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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
3

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

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
2

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

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

Stats

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

Seen: 60,558 times

Last updated: Jul 28 '13