Question

I'm trying to install cabal-nirvana on OSX 10.7.5, but I get the following output:

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

Any ideas?

In case it helps, ghc: 7.4.1 cabal-install: 0.14.0

When I do ghc-pkg check, I get the following output:

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
Was it helpful?

Solution

Nevermind... I did the 'ghc-pkg recache' and a 'sudo cabal update cabal-install', and then I was able to install cabal-nirvana without issues... The keyword here appears to be 'sudo'... D'oh!

... And by "Nevermind" I don't mean the Nirvana album :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top