[Haskell-beginners] cabal trouble(s!)
guthrie at mum.edu
Wed Jun 13 19:23:05 CEST 2012
I have lots of problems with cabal - not sure why or how to correct them.
ghc-pkg check reports tons of issues, but all seem to be haddock-html, which doesn't sound too serious, or haddock-interfaces.
Warning: haddock-html: C:\Users\guthrie\AppData\Roaming\cabal\doc\wxdirect-0.90.0.1\html doesn't exist or isn't a directory
Cabal install errors, For example;
C:\Users\guthrie>cabal install gloss-examples
Preprocessing library gloss-raster-126.96.36.199...
[1 of 2] Compiling Graphics.Gloss.Raster.Array ( Graphics\Gloss\Raster\Array.hs, dist\build\Graphics\Gloss\Raster\Array.o )
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM
ghc.exe: could not execute: opt
What is LLVM, and do/how I need to install it?
and another (of many) - perhaps unrelated:
C:\Users\guthrie\AppData\Roaming\cabal\bin>cabal install wxc
<command line>: cannot satisfy -package Cabal-188.8.131.52:
Cabal-184.108.40.206-db589dd5d526d3111ac2fde0f9ab986c is unusable due to missing or recursive dependencies:
346843c4a12b63f44b containers-0.4.0.0-18deac99a132f04751d862b77aab136e directory
f2b9acf1ea1 old-time-220.127.116.11-445ce39cbcebd38069c25c0f383b728d pretty-18.104.22.168-abc
(use -v for more information)
cabal: Error: some packages failed to install:
wxc-0.90.0.3 failed during the configure step. The exception was:
Trying to resolve them:
C:\Users\guthrie\AppData\Roaming\cabal\bin>cabal install base
cabal: internal error: impossible
I've had several others, not sure if they are package specific issues, or some larger issue with cabal and libraries.
So I tried to fix them from a suggestion in SO; delete the ~/ghc & ~/cabal files and restart cabal, by a "cabal install cabal-install".
C:\Users\guthrie>cabal install cabal-install
In order, the following would be installed:
deepseq-22.214.171.124 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3
containers-0.4.2.1 (reinstall) changes: array-0.4.0.0 -> 0.3.0.3
old-time-126.96.36.199 (new version)
directory-188.8.131.52 (reinstall) changes: filepath-184.108.40.206 -> 220.127.116.11,
old-time-18.104.22.168 -> 22.214.171.124
cabal: The following packages are likely to be broken by the reinstalls:
Use --force-reinstalls if you want to install anyway.
Lots of things there that I don't want to break, but not sure how to proceed.
Even trying a -force-reinstall just gives more errors and failures...
Running ghc 7.4.1, and Haskell platform 2012.2.0.0, cabal reports: cabal-install version 0.14.0, using version 1.14.0 of the Cabal library.
More information about the Beginners