【发布时间】:2015-10-30 22:40:13
【问题描述】:
我在 Mac OS X 10.11 上为 El-capitan 使用了最新的 Haskell Platform 7.10.2-a (https://www.haskell.org/platform/mac.html)。
当我尝试使用cabal install yesod 安装yesod 时,出现多个错误消息,例如:
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...
错误模式几乎相同:cannot satisfy -package-id。
例如,cabal install aeson 给出cannot satisfy -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 库似乎安装没有问题。
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.
可能出了什么问题?
【问题讨论】:
-
我建议两件事:a) 放弃 haskell 平台并通过
brew安装。 b)使用堆栈(年龄)。
标签: macos haskell osx-elcapitan