No subject


Thu Jul 5 12:38:43 CEST 2012


DB is in a pretty bad state, most likely from using --force-reinstalls.
When Cabal warns you that this will break stuff it actually means it. :) My
suggestion is that you

    rm -rf  ~/.ghc/x86_64-linux-7.6.1  # or equivalent on your system.

Then reinstall all the packages you want by listing them all at once

    cabal install pkg1 pkg2 pk3

By listing them all together cabal-install tries to come up with an install
plan that is globally consistent for all of them.

-- Johan

--f46d042dfe99d0ea7204cef51548
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 20, 2012 at 1:10 PM, Gregory Guthrie <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:guthrie at mum.edu" target=3D"_blank">guthrie at mum.edu</a>&gt;</s=
pan> wrote:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"><div><p class=3D"MsoNorm=
al">Hmm,<u></u><u></u></p><p class=3D"MsoNormal">Now when I tried to run Le=
ksah, I get not only some broken packages (which I can avoid for my current=
 project), but:<u></u><u></u></p>

<p class=3D"MsoNormal"><u></u>=A0<u></u></p><p class=3D"MsoNormal">&lt;comm=
and line&gt;: cannot satisfy -package-id base-4.5.1.0-7c83b96f47f23db63c42a=
56351dcb917: <u></u><u></u></p><p class=3D"MsoNormal">=A0=A0=A0=A0base-4.5.=
1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to missing or recursiv=
e dependencies:<u></u><u></u></p>

<p class=3D"MsoNormal">=A0=A0=A0=A0=A0 integer-gmp-0.4.0.0-c15e185526893c31=
19f809251aac8c5b<u></u><u></u></p><p class=3D"MsoNormal">=A0 =A0=A0(use -v =
for more information)<u></u><u></u></p><p class=3D"MsoNormal"><u></u>=A0<u>=
</u></p><p class=3D"MsoNormal">

So I tried to install base, then re-install it, but both fail;<u></u><u></u=
></p><p class=3D"MsoNormal">Any hints?</p></div></div></blockquote><div><br=
></div><div>From this email and some of the previous emails it seems that y=
our package DB is in a pretty bad state, most likely from using --force-rei=
nstalls. When Cabal warns you that this will break stuff it actually means =
it. :) My suggestion is that you</div>

<div><br></div><div>=A0 =A0 rm -rf =A0~/.ghc/x86_64-linux-7.6.1 =A0# or equ=
ivalent on your system.</div><div><br></div><div>Then reinstall all the pac=
kages you want by listing them all at once</div><div><br></div><div>=A0 =A0=
 cabal install pkg1 pkg2 pk3</div>

<div><br></div><div>By listing them all together cabal-install tries to com=
e up with an install plan that is globally consistent for all of them.</div=
><div><br></div><div>-- Johan</div><div><br></div></div>

--f46d042dfe99d0ea7204cef51548--



More information about the Haskell-Cafe mailing list