Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Why am I having such weird dependency issues? (Tom Murphy)
   2. Re:  Why am I having such weird dependency        issues?
      (Brandon Allbery)
   3. Re:  Installing Haskell on Lion with Homebrew...
      (Stuart Hungerford)
   4. Re:  Why am I having such weird dependency        issues? (Andres L?h)


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

Message: 1
Date: Thu, 8 Mar 2012 12:32:40 -0500
From: Tom Murphy <[email protected]>
Subject: [Haskell-beginners] Why am I having such weird dependency
        issues?
To: beginners <[email protected]>
Message-ID:
        <cao9q0tw6c7vvv9fttjpfqf4hfoev33hbc-lciup-r0rh6ow...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Neither of these errors makes any sense to me. What's happening?




$ cabal update
Downloading the latest package list from hackage.haskell.org
$ cabal install yi
Resolving dependencies...
cabal: dependencies conflict: ghc-7.0.3 requires containers ==0.4.0.0 however
containers-0.4.0.0 was excluded because ghc-7.0.3 requires containers
==0.4.2.0


$ cabal install hpath
Resolving dependencies...
cabal: cannot configure HPath-0.0.2. It requires base >=2 && <=4
For the dependency on base >=2 && <=4 there are these packages: base-3.0.3.1
and base-3.0.3.2. However none of them are available.
base-3.0.3.1 was excluded because of the top level dependency base -any
base-3.0.3.2 was excluded because of the top level dependency base -any



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

Message: 2
Date: Thu, 8 Mar 2012 13:01:46 -0500
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Why am I having such weird dependency
        issues?
To: Tom Murphy <[email protected]>
Cc: beginners <[email protected]>
Message-ID:
        <CAKFCL4Vdf7gHUGi=un=dpfm+dobtqp8bgztyqjdvirid7ct...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Mar 8, 2012 at 12:32, Tom Murphy <[email protected]> wrote:

> Neither of these errors makes any sense to me. What's happening?
>

At some point cabal installed a different version of a "boot library", one
required for the correct operation of ghc itself.  This tends to lead to
bizarre error messages from cabal, and even more bizarre ones if you
override cabal and try to build anyway. (Or, worse, no error messages from
that but core dumps at runtime.)


> cabal: dependencies conflict: ghc-7.0.3 requires containers ==0.4.0.0
> however
> containers-0.4.0.0 was excluded because ghc-7.0.3 requires containers
> ==0.4.2.0
>

You have multiple versions of containers installed, and yi wants to use
both of them.  Unfortunately, cabal-install loves to report the conflict
this way (I think it's bubbling the actual dependency backwards to
ghc-7.0.3 instead of leaving it where it happened?).


> cabal: cannot configure HPath-0.0.2. It requires base >=2 && <=4
> For the dependency on base >=2 && <=4 there are these packages:
> base-3.0.3.1
> and base-3.0.3.2. However none of them are available.
> base-3.0.3.1 was excluded because of the top level dependency base -any
> base-3.0.3.2 was excluded because of the top level dependency base -any
>

"base -any" here can be read as "base that came with your compiler"; it
cannot be replaced.  HPath apparently is not known to work with the version
of base that came with your ghc, so cabal tries the versions of base that
it will work with; but it can't replace the base package, and has that
rather unfortunate way of notifying you so.

I'm given to understand the unreleased version of cabal-install in the
repository does a better job of explaining these kinds of things.  As it
is, it is *very* hair-tearing....

-- 
brandon s allbery                                      [email protected]
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/20120308/4eedcbdf/attachment-0001.htm>

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

Message: 3
Date: Fri, 9 Mar 2012 08:01:31 +1100
From: Stuart Hungerford <[email protected]>
Subject: Re: [Haskell-beginners] Installing Haskell on Lion with
        Homebrew...
To: Jack Henahan <[email protected]>
Cc: [email protected]
Message-ID:
        <cag+kmrhcks_db9m5xbv8by0cqohj-nvovjcyof8a9js3b54...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Mar 8, 2012 at 9:19 AM, Jack Henahan <[email protected]> wrote:

> I recommend installing outside homebrew, really. If you want the platform, 
> I'd go with the pkg installer on the site, but I usually bootstrap the 
> bindist from here.[1] I configure it to be in its own prefix in my home 
> directory and to use the GMP from homebrew. If you'd like to go that way, let 
> me know and I'll see if I can dig up the proper methods to get the newest 
> cabal-install, as well. A few configs need fiddling, but other than that it's 
> painless.

Thanks for that--I'm trying the .pkg install now and will avoid
Homebrew for GHC/platform until those versions have settled down.  Any
other installation hints you've developed would be useful too!


Stu



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

Message: 4
Date: Thu, 8 Mar 2012 22:24:35 +0100
From: Andres L?h <[email protected]>
Subject: Re: [Haskell-beginners] Why am I having such weird dependency
        issues?
To: Brandon Allbery <[email protected]>
Cc: beginners <[email protected]>
Message-ID:
        <caljd_v6ub91npwovb-aic3hpofjtv1wz5m5hwu6h1fx1rux...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

>> cabal: dependencies conflict: ghc-7.0.3 requires containers ==0.4.0.0
>> however
>> containers-0.4.0.0 was excluded because ghc-7.0.3 requires containers
>> ==0.4.2.0
>
>
> You have multiple versions of containers installed, and yi wants to use both
> of them. ?Unfortunately, cabal-install loves to report the conflict this way
> (I think it's bubbling the actual dependency backwards to ghc-7.0.3 instead
> of leaving it where it happened?).

I can't reproduce this one easily on my system currently. I can only
say that I can produce a valid install plan for yi with ghc-7.0.3.

>> cabal: cannot configure HPath-0.0.2. It requires base >=2 && <=4
>> For the dependency on base >=2 && <=4 there are these packages:
>> base-3.0.3.1
>> and base-3.0.3.2. However none of them are available.
>> base-3.0.3.1 was excluded because of the top level dependency base -any
>> base-3.0.3.2 was excluded because of the top level dependency base -any
>
>
> "base -any" here can be read as "base that came with your compiler"; it
> cannot be replaced. ?HPath apparently is not known to work with the version
> of base that came with your ghc, so cabal tries the versions of base that it
> will work with; but it can't replace the base package, and has that rather
> unfortunate way of notifying you so.

Right.

> I'm given to understand the unreleased version of cabal-install in the
> repository does a better job of explaining these kinds of things. ?As it is,
> it is *very* hair-tearing....

This is what you get for the HPath case when you use the modular
solver. It's admittedly still not as polished as it could be, but I do
think it's an improvement:

$ cabal install --solver=modular HPath
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: HPath-0.0.2 (user goal)
next goal: base (dependency of HPath-0.0.2)
rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed
instance)
rejecting: base-4.3.1.0/installed (conflict: HPath => base>=2 && <=4)
rejecting: base-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 (global constraint requires installed instance)

So this tells you it's trying to find a version of base because HPath
depends on it. It then tells you that all versions but base-4.3.1.0
are rejected because you can only use an already installed instance of
base. But version base-4.3.1.0 is also rejected, because HPath depends
on a version of base between 2 and 4.

Cheers,
  Andres



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

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 45, Issue 8
****************************************

Reply via email to