Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when running cabal-install: ExitFailure 1 (Mac OS X lion)

I get the following error when trying to run cabal install cabal-install I have installed the haskell platform from: http://www.haskell.org/platform/ for Mac OS X Lion. I want to run cabal install cabal-install so I can install quickcheck

When trying to update, I get this erro.

$ 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
like image 444
Tom Avatar asked Oct 20 '12 16:10

Tom


2 Answers

Try:

sudo ghc-pkg recache

I had the same problem and that works for me.

like image 56
Dat Le Avatar answered Nov 02 '22 18:11

Dat Le


Go to your .cabal/config file, look for the line that says "library-profiling: ". This should be set to "False" for MacOSX, otherwise it will fail to find the packages that are installed. You'll get funny errors from the build phase where it was unable to import certain modules because "maybe" certain packages aren't installed.

like image 21
luis Avatar answered Nov 02 '22 18:11

luis