[Haskell-beginners] Cabal complains that cabal-dev “indirectly depends on multiple versions of the same package”, even though it (apparently) does not

Brandon Allbery allbery.b at gmail.com
Wed Feb 15 22:25:28 CET 2012

On Wed, Feb 15, 2012 at 16:15, James Fisher <jameshfisher at gmail.com> wrote:

> $ cabal update
> Downloading the latest package list from hackage.haskell.org
> james at bast:~/.cabal/packages$ cabal install cabal-dev
> Resolving dependencies...
> Downloading cabal-dev-0.9.1...
> [1 of 1] Compiling Main             ( /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/Setup.hs, /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/dist/setup/Main.o )
> Linking /tmp/cabal-dev-0.9.124882/cabal-dev-0.9.1/dist/setup/setup ...
> Configuring cabal-dev-0.9.1...
> Warning: This package indirectly depends on multiple versions of the same
> package. This is highly likely to cause a compile failure.
> package containers- requires array-
> package Cabal-1.14.0 requires array-
> package text- requires array-
> package deepseq- requires array-
> package containers- requires array-
> package HTTP-4000.2.2 requires array-
> package cabal-dev-0.9.1 requires containers-
> package Cabal-1.14.0 requires containers-
> package template-haskell- requires containers-
I think you'll need -v to see what's going on, but my guess is you somehow
have multiple versions of either array or containers with the same version
number but different hashes, or that one of the packages depends on a no
longer installed package with the right version but had a different hash.

My guess is it's containers, because the containers -> array dependency is
listed twice --- making me suspicious that those are two separate instances
with the same version but different hashes (which aren't normally shown

>     Cabal-1.14.0-4af45d3c8d10dc27db38ae0e7e5a952b is unusable due to missing or recursive dependencies:
>       array- containers-
> This shows the hashes for one of those sets, but not the other.

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120215/69ed4deb/attachment.htm>

More information about the Beginners mailing list