Installation dependency error: "base- * was excluded due to the -any top-level dependency database"

Here's the complete error:

$ cabal install hakyll Resolving dependencies... cabal: cannot configure snap-server-0.5.3.1. It requires base >=4.3 && <5 For the dependency on base >=4.3 && <5 there are these packages: base-4.3.0.0, base-4.3.1.0 and base-4.4.0.0. However none of them are available. base-4.3.0.0 was excluded because of the top level dependency base -any base-4.3.1.0 was excluded because of the top level dependency base -any base-4.4.0.0 was excluded because of the top level dependency base -any $ 

How can I exclude base-* versions due to some rule that seems to be saying that any version is ok?

+7
source share
2 answers

Every time I encounter this problem, this is due to the fact that I performed all the following actions:

  • Download the package from Hackage with deprecated dependencies.
  • Dependencies are updated and it was observed that he built the beautiful (or spent time fixing any errors).
  • Ran cabal install with new dependencies.
  • Did not update the version number.

This last one is a real kicker. cabal install will assume that if it knows a couple of package / package dependencies from Hackage, this couple is canonical. If you want him to know about the updated dependencies, change the package version number before installation.

You will need to make sure that you have done this correctly for any of the hakyll dependencies that you manually installed.

+3
source

Get in the same problem. I decided.

It was a clean haskell installation. But it was a clean install of haskell from the linux package manager (in this case, ubuntu), which had older versions.

I had to remove the old packages and download the source code, as well as create and install it.

Get the latest platform versions from:
http://hackage.haskell.org/platform/linux.html

Get the ghc sources needed for the platform. http://haskell.org/ghc/download_ghc_7_0_3#distros

example for this: http://sporkcode.wordpress.com/2009/07/11/installing-the-haskell-platform-in-ubuntu/

+3
source

All Articles