Haskell cabal问题与Mac OS X 10.11? (不能满足-package-id) [英] Haskell cabal issue with Mac OS X 10.11? (cannot satisfy -package-id)

查看:197
本文介绍了Haskell cabal问题与Mac OS X 10.11? (不能满足-package-id)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了最新的Haskell Platform 7.10.2-a( https://www.haskell。 org / platform / mac.html )在Mac OS X 10.11 for El-capitan。

I used the latest Haskell Platform 7.10.2-a (https://www.haskell.org/platform/mac.html) on Mac OS X 10.11 for El-capitan.

当我试图用安装 yesod cabal install yesod ,我有多个错误消息,例如:

When I tried to install yesod with cabal install yesod, I have multiple error messages such as:

Building email-validate-2.1.3...
Building http-api-data-0.2.1...
Building fast-logger-2.4.1...
Building http-date-0.0.6.1...
Failed to install crypto-random-0.0.9
Build log ( /Users/smcho/.cabal/logs/crypto-random-0.0.9.log ):
Configuring crypto-random-0.0.9...
Building crypto-random-0.0.9...
Preprocessing library crypto-random-0.0.9...
<command line>: cannot satisfy -package-id vector-0.11.0.0-730f99979d41c11c3a1ef069844b5f57
    (use -v for more information)
Failed to install email-validate-2.1.3
Build log ( /Users/smcho/.cabal/logs/email-validate-2.1.3.log ):
Configuring email-validate-2.1.3...

错误模式几乎相同:不能满足-package-id

例如, C ^ abal install aeson 给出无法满足-package-id attoparse ... 错误。

Resolving dependencies...
Configuring aeson-0.10.0.0...
Building aeson-0.10.0.0...
Failed to install aeson-0.10.0.0
Build log ( /Users/smcho/.cabal/logs/aeson-0.10.0.0.log ):
Configuring aeson-0.10.0.0...
Building aeson-0.10.0.0...
Preprocessing library aeson-0.10.0.0...
<command line>: cannot satisfy -package-id attoparsec-0.13.0.1-99b4df28644e63383f308c810764a8bb
    (use -v for more information)
cabal: Error: some packages failed to install:
aeson-0.10.0.0 failed during the building phase. The exception was:
ExitFailure 1

然而,attoparsec库似乎安装没有问题。

However, attoparsec library seems to be installed without problem.

smcho@macho ~> cabal install attoparsec
Resolving dependencies...
All the requested packages are already installed:
attoparsec-0.13.0.1
Use --reinstall if you want to reinstall anyway.

什么可能是错误的?

推荐答案

这可能会引起争议,但是haskell平台和cabal(直接使用时) 堆栈

This might be controversial, but imho the haskell platform and cabal (when used directly) are both essentially deprecated now with the advent of stack.

堆栈将:


  1. 为您自动安装haskell( stack setup
  2. 自动沙箱(并在项目之间智能共享沙箱)

  3. 完全避免cabal地狱(以我的经验)

这篇关于Haskell cabal问题与Mac OS X 10.11? (不能满足-package-id)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆