Ask Your Question

Persistent dependency error when installing a package.

asked 2014-05-29 23:21:52 -0500

Woland gravatar image

updated 2014-09-28 11:19:01 -0500

mether gravatar image

Trying to get a basic Haskell environment working. I've tried yum install ghc and yum install haskell-platform.x86_64 but both error out with a bunch of dependency errors:

error: Package: ghc-base-devel- (updates)
       Requires: gmp-devel(x86-64)

however, there seems to be no gmp-devel in my repos.

enter code hLoading mirror speeds from cached hostfile
* rpmfusion-nonfree:
* rpmfusion-nonfree-updates:
* updates:
No package gmp-devel available.
Error: Nothing to do here

Everything on the web seems to indicate that it should be in the standard repo for FC 20.

Using yum clean all doesn't help.

Running rpm -Va --nofiles --nodigest produces no output.

Running yum -v repolist produces the following output:

Removing and rebuilding the database also does not fix the problem:

rm -f /var/lib/rpm/__db*
rpm --rebuilddb

Downloading the package and installing it with rpm shows that the package is in there, but somehow still blocks the installation: # yum install /home/path/gmp-devel-5.1.2-2.fc20.i686.rpm Loaded plugins: fastestmirror, langpacks, refresh-packagekit Examining /home/path/gmp-devel-5.1.2-2.fc20.i686.rpm: 1:gmp-devel-5.1.2-2.fc20.i686 /home/path/gmp-devel-5.1.2-2.fc20.i686.rpm: does not update installed package. Error: Nothing to do

But the install of ghc still fails:

--> Finished Dependency Resolution
Error: Package: ghc-base-devel- (updates)
       Requires: gmp-devel(x86-64)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Am I missing something?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-06-02 07:41:57 -0500

Your Fedora repo is missing or disabled, you only have updates. There hasn't been an update for ghc in F20 yet.

edit flag offensive delete link more



In the second blockquote of the question, you can see where yum refreshes repo metadata for three repos as he attempts to install ghc-devel. The "fedora" repo isn't listed there, or in the paste supplied later.

randomuser gravatar imagerandomuser ( 2014-06-02 14:40:34 -0500 )edit

Thanks! As a bonus, I can now run yum update without having to specify --skip-broken I guess that should have been another clue as to the problem. I just assumed updates was the main repo. But now I know.

Woland gravatar imageWoland ( 2014-06-02 14:46:12 -0500 )edit

answered 2014-05-30 03:42:08 -0500

FranciscoD_ gravatar image

Try cleaning your yum cache:

sudo yum clean all

and retry. I see gmp-devel package in koji -

edit flag offensive delete link more


yum install gmp-devel seems to work just fine for me

FranciscoD_ gravatar imageFranciscoD_ ( 2014-05-30 03:43:04 -0500 )edit

@FransiscoD_ Sorry, I tried all the usual suspects, still no luck.

Woland gravatar imageWoland ( 2014-06-01 09:55:58 -0500 )edit

Question Tools

1 follower


Asked: 2014-05-29 23:21:52 -0500

Seen: 3,088 times

Last updated: Jun 02 '14