English 中文(简体)
-package Cabal-1.8.0.6 breaks pango installation on Mac
原标题:

When installing Haskell pango on mac (sudo cabal install pango), the first problem is that it tries to install packages I ve already installed. I ve install haskell98 (successfully), but pango tries to install it again, and when the compilation is complete it gives this error:

Registering haskell98-1.0.1.1...
Installing library in /Users/username/.cabal/lib/haskell98-1.0.1.1/ghc-6.12.3
Registering haskell98-1.0.1.1...
<command line>: cannot satisfy -package Cabal-1.8.0.6: 
    Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
      process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
    (use -v for more information)
<command line>: cannot satisfy -package Cabal-1.8.0.6: 
    Cabal-1.8.0.6-ec9be469687b5a514f4b7e8e2b8343c7 is unusable due to missing or recursive dependencies:
      process-1.0.1.3-1209536e5ce8f43dc64e390034356d63
    (use -v for more information)

So I used sudo cabal install pango -v, and this is the command that breaks the reinstallation of haskell98:

/usr/bin/ghc --make /tmp/glib-0.11.249666/glib-0.11.2/Setup.hs -o /tmp/glib-0.11.249666/glib-0.11.2/dist/setup/setup -odir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -hidir /tmp/glib-0.11.249666/glib-0.11.2/dist/setup -i -i/tmp/glib-0.11.249666/glib-0.11.2 -package Cabal-1.8.0.6

specifically the -package Cabal-1.8.0.6 part. What is wrong with this installation?

最佳回答

This isn t really an answer, but I can t format it well as a comment so I m sticking it here.

First, are you installing into the user or global package directory (the default is the user directory unless you edited your .cabal file)? If you re putting it into the user dir, don t use sudo with cabal.

Secondly, have you run cabal install pango -v? The "-v" option displays what cabal thinks it needs to install, as well as more error messages, so it can be helpful.

Finally, run ghc-pkg describe Cabal to see which versions of Cabal are installed and their dependencies. It seems like somehow your Cabal-1.8.0.6 installation is unusable, but unfortunately I can t say why. If nothing depends on Cabal-1.8.0.6, I would suggest just unregistering it.

问题回答

暂无回答




相关问题
Euler Problem in Haskell -- Can Someone Spot My Error

I m trying my hand at Euler Problem 4 in Haskell. It asks for that largest palindrome formed by multiplying two three-digit numbers. The problem was simple enough, and I thought my Haskell-fu was up ...

How does foldr work?

Can anybody explain how does foldr work? Take these examples: Prelude> foldr (-) 54 [10, 11] 53 Prelude> foldr (x y -> (x+y)/2) 54 [12, 4, 10, 6] 12.0 I am confused about these executions....

Efficient queue in Haskell

How can I efficiently implement a list data structure where I can have 2 views to the head and end of the list, that always point to a head a tail of a list without expensive calls to reverse. i.e: ...

Problem detecting cyclic numbers in Haskell

I am doing problem 61 at project Euler and came up with the following code (to test the case they give): p3 n = n*(n+1) `div` 2 p4 n = n*n p5 n = n*(3*n -1) `div` 2 p6 n = n*(2*n -1) p7 n = n*(5*n -3)...

Ways to get the middle of a list in Haskell?

I ve just started learning about Functional Programming, using Haskel. I m slowly getting through Erik Meijer s lectures on Channel 9 (I ve watched the first 4 so far) and in the 4th video Erik ...

haskell grouping problem

group :: Ord a => [(a, [b])] -> [(a, [b])] I want to look up all pairs that have the same fst, and merge them, by appending all the list of bs together where they have the same a and discarding ...

Closest equivalent to subprocess.communicate in Haskell

I want to do a popen() / python s subprocess.communicate from Haskell - start a program, give it stdin, and get its stdout/stderr. What s the most direct / Haskellish way to do this?

热门标签