当我运行 cabal install hoogle
时,我得到以下信息:
setup: The program happy version >=1.17 is required but it could not be found
cabal: Error: some packages failed to install
haskell-src-exts-1.13.3 failed during the configure step the exeption is ExitFailure 1
$ghc -V
The Glorious Glasgow Haskell Compilation System, version 7.4.1
如何解决这样的问题?
最佳答案
运行 cabal install alex happy && cabal install hoogle
,而不是 cabal install hoogle
。
hackage 上的很多包都需要 alex
和 happy
,所以最好在 cabal update
之后安装它们。
关于haskell - 执行时出错 "cabal install hoogle",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11753979/