[Haskell-cafe] Building fresh cabal-install on raspberry-pi
k-bx at k-bx.com
Thu Dec 25 07:40:48 UTC 2014
Thanks, Chris and everybody else.
The thing is, and I just finished to re-check, that this error happens even
after I did `rm ~/.ghc; rm ~/.cabal`, so this happens upon fresh install.
Thanks for links, I will spend some time later to learn to get more
understanding on what exactly goes wrong.
On Wed, Dec 24, 2014 at 11:49 AM, Chris Wong <lambda.fairy at gmail.com> wrote:
> Hi Konstantine,
> You're experiencing a phenomenon commonly known as "dependency hell".
> The usual and most straightforward solution is to nuke ~/.cabal and
> ~/.ghc and reinstall.
> In the future, you should aim to install as many packages as possible
> in one go, so that Cabal can ensure they work together up front. Also,
> if you have multiple projects going, consider using Cabal sandboxes to
> keep them separate.
> These links might help:
> * https://cdsmith.wordpress.com/2011/01/17/the-butterfly-effect-in-cabal/
> * http://www.vex.net/~trebla/haskell/sicp.xhtml
> * http://coldwa.st/e/blog/2013-08-20-Cabal-sandbox.html
> On Wed, Dec 24, 2014 at 8:06 PM, Konstantine Rybnikov <k-bx at k-bx.com>
> > Hi! I just got raspberry pi and installed debian wheezy on it. It has ghc
> > 7.4.1 with cabal 1.14.0.
> > I tried to do cabal install cabal-install and got this:
> > ```
> > In-place registering Cabal-220.127.116.11...
> > Installing library in
> > Registering Cabal-18.104.22.168...
> > Downloading cabal-install-22.214.171.124...
> > Configuring cabal-install-126.96.36.199...
> > cabal: At least the following dependencies are missing:
> > random >=1 && <1.1 && ==1.1
> > cabal: Error: some packages failed to install:
> > cabal-install-188.8.131.52 failed during the configure step. The exception
> > ```
> > If I do `cabal list --installed | less` and search for random I see:
> > ```
> > * random
> > Synopsis: random number library
> > Default available version: 1.1
> > Installed versions: 184.108.40.206, 1.1
> > License: BSD3
> > ```
> > Can anyone please help how do I resolve this and similar problems?
> > Thanks!
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe