Ask Your Question

Unable to install and use gcc in fedora 21?

asked 2015-04-14 04:08:23 -0500

Abin Punnoose gravatar image

updated 2015-04-14 08:49:34 -0500

mether gravatar image

I am trying to install gcc on my fedora 21. But, it didn't come preinstalled.. The following error is seen. Please Help!!

[abin@abin ~]$ gcc
bash: gcc: command not found...
Install package 'gcc' to provide command 'gcc'? [N/y] y
* Waiting in queue... 
* Loading list of packages.... 
The following packages have to be downgraded:
libgomp-4.9.2-1.fc21.x86_64 GCC OpenMP v3.0 shared support library
The following packages have to be installed:
cpp-4.9.2-1.fc21.x86_64 The C Preprocessor
libmpc-1.0.2-3.fc21.x86_64  C library for multiple precision complex arithmetic
Proceed with changes? [N/y] y
* Waiting in queue... 
* Waiting for authentication... 
* Waiting in queue... 
* Downloading packages... 
* Requesting data... 
* Testing changes... Failed to install packages: Error running transaction: package libgomp-4.9.2-1.fc21.x86_64(newer than libgomp-4.9.2-6.fc21.x86_64) is already installed
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-14 04:22:07 -0500

cobra gravatar image

You have a package conflict. You may have a software repository installed that is no compatible with other software repositories you have. You can use yum to inquire about which repositories you have, try yum repolist.

You may also find out more about the specific conflicts and which repositories are providing the conflicted packages by attempting the install directly through yum:

yum install gcc

if you can't work it out from that, then post up the output and we'll help.

edit flag offensive delete link more



Thanks @cobra.. It worked

Abin Punnoose gravatar imageAbin Punnoose ( 2015-04-14 08:00:56 -0500 )edit

@abin-punnoose - please upvote @cobra's answer to reward him for helping you, and if you have enough karma, even mark it as correct - he gets karma for each correct answer and each upvote :)

FranciscoD_ gravatar imageFranciscoD_ ( 2015-04-15 05:51:01 -0500 )edit

Question Tools


Asked: 2015-04-14 04:08:23 -0500

Seen: 667 times

Last updated: Apr 14 '15