Ask Your Question
1

Persistent dependency error when installing a package.

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

Woland gravatar image

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

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-4.6.0.1-18.3.fc20.x86_64 (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: mirror.us.leaseweb.net
* rpmfusion-nonfree-updates: mirror.us.leaseweb.net
* updates: mirrors.servercentral.net
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: http://pastebin.com/Rh68s735

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-4.6.0.1-18.3.fc20.x86_64 (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
3

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

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

Comments

1

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

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

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

FranciscoD_ gravatar image

Try cleaning your yum cache:

sudo yum clean all

and retry. I see gmp-devel package in koji - http://koji.fedoraproject.org/koji/buildinfo?buildID=445660

edit flag offensive delete link more

Comments

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

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

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

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

Question Tools

1 follower

Stats

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

Seen: 3,081 times

Last updated: Jun 02 '14