[Haskell-cafe] Hackage dependencies problem.
magicloud.magiclouds at gmail.com
Tue Nov 20 03:39:37 CET 2012
Not only shadowing.
For example, when I installed warp-static, yesod, or gtk2hs. A
clear-user-space may ease the problem and got them installed. But normally
with a not brand new user space, it failed like above.
And, the key point is that using upgrade-dependencies with cabal-install. I
am using git (current) version of cabal-install. Without that argument,
things could be fine. With it, it must fail.
And ghc-pkg check reports no errors.
On Tue, Nov 20, 2012 at 3:47 AM, Albert Y. C. Lai <trebla at vex.net> wrote:
> On 12-11-19 04:45 AM, Ivan Lazar Miljenovic wrote:
>> On 19 November 2012 18:21, Magicloud Magiclouds
>> <magicloud.magiclouds at gmail.**com <magicloud.magiclouds at gmail.com>>
>>> <command line>: cannot satisfy -package Cabal-1.16.0:
>>> Cabal-1.16.0-**dd0ce1db6fea670a788547ee854114**86 is unusable due
>>> to missing
>>> or recursive dependencies:
>>> (use -v for more information)
>>> What should I do? Why user space directory and process would interrupt
>>> Cabal in global space?
>> It shouldn't.
>> Can you please give an example of a package that gives you an error like
>> Also, what does "ghc-pkg check" say?
>> The only thing I can think of is that you're trying to upgrade a
>> package like array, containers, etc.
> It does. It has always been. When unioning user and global, user takes
> precedence: user directory-22.214.171.124 shadows global directory-126.96.36.199 (GHC
> User's Guide 4.9.4). But look closer: user directory-188.8.131.52-feedbabe...
> shadows global directory-184.108.40.206-deadbeef... Therefore, if global
> Cabal-1.16.0 was built against directory-220.127.116.11-deadbeef..., it's a
> missing dependency for you.
> See my http://www.vex.net/~trebla/**haskell/sicp.xhtml#pigeon<http://www.vex.net/~trebla/haskell/sicp.xhtml#pigeon>
> Fortunately, shadowing is a sessional property, not a data-loss property.
> One can say, it's a data-surplus property. To regain working sessions, cut
> surplus data, add -no-user-package-db to all your ghc and ghci commands.
> "ghc-pkg check" does not report shadowing. Go straight for "ghc -v".
> This is what you get for "--reinstall".
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
And for G+, please use magiclouds#gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe