Gregory Guthrie | 20 Nov 22:10 2012

cabal install...

Hmm,

Now when I tried to run Leksah, I get not only some broken packages (which I can avoid for my current project), but:

 

<command line>: cannot satisfy -package-id base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917:

    base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to missing or recursive dependencies:

      integer-gmp-0.4.0.0-c15e185526893c3119f809251aac8c5b

    (use -v for more information)

 

So I tried to install base, then re-install it, but both fail;

Any hints?

––––––––––––––––––––––––––––––-

C:\Users\guthrie>cabal install base

Resolving dependencies...

All the requested packages are already installed:

base-4.5.1.0

Use --reinstall if you want to reinstall anyway.

 

C:\Users\guthrie>cabal install --reinstall base

Resolving dependencies...

cabal: Could not resolve dependencies:

next goal: base (user goal)

rejecting: base-3.0.3.2 (conflict: base => base>=4.0 && <4.3)

rejecting: base-3.0.3.1 (conflict: base => base>=4.0 && <4.2)

rejecting: base-4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0,

4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0 (only already installed instances can be used)

 

C:\Users\guthrie>ghc-pkg list base

WARNING: there are broken packages.  Run 'ghc-pkg check' for more details.

e:/Plang/Haskell Platform\lib\package.conf.d:

    base-4.3.1.0

    base-4.5.0.0

    base-4.5.1.0

 

The following packages are broken, either because they have a problem

listed above, or because they depend on a broken package.

HTTP-4000.2.3

haskell-platform-2012.2.0.0

 

Can I just unregister the old Haskell platform, I now use a newer one?

Ghc-pkg list : …

    {haskell-platform-2012.2.0.0}

    haskell-platform-2012.4.0.0

    haskell-src-1.0.1.4

    haskell-src-1.0.1.4

    haskell-src-1.0.1.5

    haskell-src-1.0.1.5

    (haskell2010-1.0.0.0)

    (haskell2010-1.1.0.1)

    (haskell2010-1.1.0.1)

    haskell98-1.1.0.1

    (haskell98-2.0.0.1)

    (haskell98-2.0.0.1)

 

-------------------------------------------

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Brandon Allbery | 20 Nov 22:17 2012
Picon

Re: cabal install...

On Tue, Nov 20, 2012 at 4:10 PM, Gregory Guthrie <guthrie <at> mum.edu> wrote:

Hmm,

Now when I tried to run Leksah, I get not only some broken packages (which I can avoid for my current project), but:

 

<command line>: cannot satisfy -package-id base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917:

    base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to missing or recursive dependencies:

      integer-gmp-0.4.0.0-c15e185526893c3119f809251aac8c5b

    (use -v for more information)

 

So I tried to install base, then re-install it, but both fail;


You can't install base or integer-gmp from cabal-install.  They are wired into the compiler, and the only way to reinstall them is to reinstall ghc.  In fact, finding a way to install ether from cabal-install will cause the kind of breakage you're seeing.  (It's not supposed to be possible, at least for base.  If at some point you installed integer-gmp from hackage, you need to remove it; if you installed it into the global package database, you really do have no choice but remove and reinstall ghc now.)

If you installed ghc as part of the haskell platform, then you need to remove and reinstall that.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b <at> gmail.com                                  ballbery <at> sinenomine.net
unix/linux, openafs, kerberos, infrastructure          http://sinenomine.net

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Johan Tibell | 20 Nov 23:51 2012
Picon

Re: cabal install...

On Tue, Nov 20, 2012 at 1:10 PM, Gregory Guthrie <guthrie <at> mum.edu> wrote:

Hmm,

Now when I tried to run Leksah, I get not only some broken packages (which I can avoid for my current project), but:

 

<command line>: cannot satisfy -package-id base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917:

    base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to missing or recursive dependencies:

      integer-gmp-0.4.0.0-c15e185526893c3119f809251aac8c5b

    (use -v for more information)

 

So I tried to install base, then re-install it, but both fail;

Any hints?


From this email and some of the previous emails it seems that your package 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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Eric Velten de Melo | 21 Nov 01:54 2012
Picon

Re: cabal install...

I have a dream of one day being able to install leksah without having
to downgrade ghc. Right now I can't even install cabal-dev with cabal.
It will break ghc if I do.

2012/11/20 Johan Tibell <johan.tibell <at> gmail.com>:
> On Tue, Nov 20, 2012 at 1:10 PM, Gregory Guthrie <guthrie <at> mum.edu> wrote:
>>
>> Hmm,
>>
>> Now when I tried to run Leksah, I get not only some broken packages (which
>> I can avoid for my current project), but:
>>
>>
>>
>> <command line>: cannot satisfy -package-id
>> base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917:
>>
>>     base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to
>> missing or recursive dependencies:
>>
>>       integer-gmp-0.4.0.0-c15e185526893c3119f809251aac8c5b
>>
>>     (use -v for more information)
>>
>>
>>
>> So I tried to install base, then re-install it, but both fail;
>>
>> Any hints?
>
>
> From this email and some of the previous emails it seems that your package
> 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
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe <at> haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
Sturdy, Ian | 21 Nov 15:08 2012

Re: cabal install...

The latest version of cabal-dev on Hackage does not seem to have had its dependencies updated for GHC 7.6.
Try installing off github (https://github.com/creswick/cabal-dev).

Ian Sturdy
________________________________________
From: haskell-cafe-bounces <at> haskell.org [haskell-cafe-bounces <at> haskell.org] on behalf of Eric
Velten de Melo [ericvmelo <at> gmail.com]
Sent: Tuesday, November 20, 2012 7:54 PM
To: Johan Tibell
Cc: Gregory Guthrie; haskell-cafe <at> haskell.org
Subject: Re: [Haskell-cafe] cabal install...

I have a dream of one day being able to install leksah without having
to downgrade ghc. Right now I can't even install cabal-dev with cabal.
It will break ghc if I do.

2012/11/20 Johan Tibell <johan.tibell <at> gmail.com>:
> On Tue, Nov 20, 2012 at 1:10 PM, Gregory Guthrie <guthrie <at> mum.edu> wrote:
>>
>> Hmm,
>>
>> Now when I tried to run Leksah, I get not only some broken packages (which
>> I can avoid for my current project), but:
>>
>>
>>
>> <command line>: cannot satisfy -package-id
>> base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917:
>>
>>     base-4.5.1.0-7c83b96f47f23db63c42a56351dcb917 is unusable due to
>> missing or recursive dependencies:
>>
>>       integer-gmp-0.4.0.0-c15e185526893c3119f809251aac8c5b
>>
>>     (use -v for more information)
>>
>>
>>
>> So I tried to install base, then re-install it, but both fail;
>>
>> Any hints?
>
>
> From this email and some of the previous emails it seems that your package
> 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
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe <at> haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane