尝试运行cabal install cabal-install时出现以下错误 我已经安装了来自:http://www.haskell.org/platform/的haskell平台,适用于Mac OS X Lion。我想运行cabal install cabal-install所以我可以安装quickcheck
在尝试更新时,我得到了这个错误。
$ cabal install cabal-install
Resolving dependencies...
Configuring cabal-install-1.16.0...
Building cabal-install-1.16.0...
Preprocessing executable 'cabal' for cabal-install-1.16.0...
<command line>: cannot satisfy -package-id HTTP-4000.2.3-d6c69f84aec25261a9a3f6946119d9d2
(use -v for more information)
cabal: Error: some packages failed to install:
cabal-install-1.16.0 failed during the building phase. The exception was:
ExitFailure 1
答案 0 :(得分:8)
尝试:
sudo ghc-pkg recache
我遇到了同样的问题,对我有用。
答案 1 :(得分:2)
转到.cabal / config文件,查找“library-profiling:”行。 对于MacOSX,此值应设置为“False”,否则将无法找到已安装的软件包。您将从构建阶段得到有趣的错误,因为它可能无法导入某些模块,因为“可能”某些软件包未安装。