0

我正在尝试在 OSX 10.7.5 上安装 cabal-nirvana,但得到以下输出:

cabal install cabal-nirvana
Resolving dependencies...
Downloading cabal-nirvana-0.2.2...
Configuring cabal-nirvana-0.2.2...
Building cabal-nirvana-0.2.2...
Preprocessing executable 'cabal-nirvana' for cabal-nirvana-0.2.2...
<command line>: cannot satisfy -package-id HTTP-4000.2.3-c26f702c170ca487dfea54c2f3d6d4c0
    (use -v for more information)
cabal: Error: some packages failed to install:
cabal-nirvana-0.2.2 failed during the building phase. The exception was:
ExitFailure 1

有任何想法吗?

如果有帮助,ghc: 7.4.1 cabal-install: 0.14.0

当我进行 ghc-pkg 检查时,我得到以下输出:

WARNING: cache is out of date: /Library/Frameworks/GHC.framework/Versions/7.4.1-    i386/usr/lib/ghc-7.4.1/package.conf.d/package.cache
  use 'ghc-pkg recache' to fix.
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.1/lib/GLUT-2.1.2.1/doc/html/GLUT.haddock doesn't exist or isn't a file
Warning: haddock-interfaces: /Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html/haskell-platform.haddock doesn't exist or isn't a file
Warning: haddock-html: /Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html doesn't exist or isn't a directory
4

1 回答 1

1

没关系......我做了'ghc-pkg recache'和'sudo cabal update cabal-install',然后我能够毫无问题地安装cabal-nirvana......这里的关键字似乎是'sudo'.. . 哦!

...我所说的“Nevermind”并不是指 Nirvana 专辑 :)

于 2012-11-06T03:31:54.440 回答