Вопрос

Update: Running ghc-pkg check reported:

~: ghc-pkg check
WARNING: cache is out of date: /Library/Frameworks/GHC.framework/Versions/7.0.3i386/usr/lib/ghc-7.0.3/package.conf.d/package.cache
  use 'ghc-pkg recache' to fix.
~: ghc-pkg recache

and after that cabal seemed a lot happier!


Trying to install yesod but the first install failure is:

Building attoparsec-0.9.1.1...
Building library...
Creating dist/build (and its parents)
/usr/bin/ghc --make -package-name attoparsec-0.9.1.1 -hide-all-packages -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-DAPPLICATIVE_IN_BASE -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id base-4.3.1.0-167743fc0dd86f7f2a24843a933b9dce -package-id bytestring-0.9.1.10-77e44adc4117472276bab802bea3c036 -package-id containers-0.4.0.0-18deac99a132f04751d862b77aab136e -package-id deepseq-1.1.0.2-09b3aed0c4982bbc6569c668100876fa -O -Wall -XHaskell98 -XCPP Data.Attoparsec Data.Attoparsec.Char8 Data.Attoparsec.Combinator Data.Attoparsec.FastSet Data.Attoparsec.Lazy Data.Attoparsec.Number Data.Attoparsec.Zepto Data.Attoparsec.Internal Data.Attoparsec.Internal.Types
<command line>: cannot satisfy -package-id deepseq-1.1.0.2-09b3aed0c4982bbc6569c668100876fa
    (use -v for more information)

The complete list of unsatisfied packages is:

    <command line>: cannot satisfy -package-id deepseq-1.1.0.2-09b3aed0c4982bbc6569c668100876fa
    <command line>: cannot satisfy -package-id mtl-2.0.1.0-9763a8821c812a910d327bad2c0d23b2
    <command line>: cannot satisfy -package-id network-2.3.0.2-24fdc6b92867c7236e81708f93cae7d0
    <command line>: cannot satisfy -package-id parsec-3.1.1-5671ee15550b9e1b29f6da36f7643854
    <command line>: cannot satisfy -package-id text-0.11.0.6-7812e10747897216f9b707186c779855
    <command line>: cannot satisfy -package-id transformers-0.2.2.0-a8a2dbba7d96131db605cf631ea0c8c4
    <command line>: cannot satisfy -package-id zlib-0.5.3.1-5fbdf714525b76e0e601c2ffb25f2044

Output from cabal --version:

cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library

Any ideas?

Это было полезно?

Решение

In this case the answer was to see if the ghc package cache was up-to-date and run ghc-pkg recache if it isn't.

~: ghc-pkg check
WARNING: cache is out of date: /Library/Frameworks/GHC.framework/Versions/7.0.3i386/usr/lib/ghc7.0.3/package.conf.d/package.cache
  use 'ghc-pkg recache' to fix.
~: ghc-pkg recache

Doing this enabled me to install yesod.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top