Ask Your Question
0

How to install gcc? [closed]

asked 2015-02-28 10:29:40 -0600

David117 gravatar image

When I do "yum -y install gcc" ? It's tell me no this pakege???

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by FranciscoD_
close date 2015-03-03 05:58:53.693102

Comments

1

What does it exactly say? (Give the complete output). Are you sure that it is not already installed?

hedayat gravatar imagehedayat ( 2015-02-28 11:18:21 -0600 )edit

Exactlly say "No package gcc availble

Nothing to do"

David117 gravatar imageDavid117 ( 2015-02-28 11:37:31 -0600 )edit
1

What does yum repolist say? gcc package is available in Fedora repository with the same name, so there is something wrong with your repo configuration.

hedayat gravatar imagehedayat ( 2015-02-28 11:47:16 -0600 )edit

repolist:0

David117 gravatar imageDavid117 ( 2015-02-28 12:10:00 -0600 )edit

In new fedora 21

David117 gravatar imageDavid117 ( 2015-02-28 12:19:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-02-28 14:12:57 -0600

sideburns gravatar image

Welcome to ask.fedora! I'm not sure why you're having this difficulty, but if you need gcc, you probably need the other development tools that go with it. Try this instead, as root:

yum group install "Development Tools"

and let us know if it works and if not, what error messages you got.

edit flag offensive delete link more

Comments

Reinstall first install gcc success!

David117 gravatar imageDavid117 ( 2015-02-28 21:24:16 -0600 )edit

Reinstall Fedora21 server than first install gcc success!

David117 gravatar imageDavid117 ( 2015-02-28 22:00:33 -0600 )edit

Voting up @sideburns to compensate the negative... really don't know why someone voted down!

skytux gravatar imageskytux ( 2015-02-28 22:53:17 -0600 )edit
1

@skytux I didn't give sideburns the down vote, but his answer is actually wrong. As you can see above, his problem was with his repos. Otherwise, yum install gcc would also work. :P And he has solved his problem by re-installing Fedora.

hedayat gravatar imagehedayat ( 2015-03-01 01:30:26 -0600 )edit
3

I don't think the answer is wrong - it doesn't solve the problem, but it does answer the question as asked. Better questions get better answers.

randomuser gravatar imagerandomuser ( 2015-03-01 03:42:24 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-28 10:29:40 -0600

Seen: 2,810 times

Last updated: Feb 28 '15