cabal 安装...失败 - osx - 许多不满意的软件包
更新:运行 ghc-pkg 检查报告:
~: 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
之后阴谋集团似乎更快乐了!
尝试安装 yesod 但第一次安装失败是:
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
Cabal --version 的输出:
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,答案是查看 ghc 包缓存是否是最新的,如果不是,则运行 ghc-pkg recache 。
这样做使我能够安装 yesod。
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.Doing this enabled me to install yesod.