[Haskell-beginners] install trouble: diagrams

Gregory Guthrie guthrie at mum.edu
Fri Jan 30 13:49:00 UTC 2015


Trying to install Diagrams, but am stuck in a typical Cabal maze of install errors; any hints or help?

>cabal install Diagrams
Resolving dependencies...
Configuring arithmoi-0.4.1.1...
Building arithmoi-0.4.1.1...
Preprocessing library arithmoi-0.4.1.1...
...
<no location info>:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM
[ 1 of 34] Compiling Math.NumberTheory.Primes.Sieve.Indexing ( Math\NumberTheory
\Primes\Sieve\Indexing.hs, dist\dist-sandbox-b31b5bcf\build\Math\NumberTheory\Primes\Sieve\Indexing.o )

<no location info>:
    Warning: Couldn't figure out LLVM version!
             Make sure you have installed LLVM
Failed to install arithmoi-0.4.1.1
cabal: Error: some packages failed to install:
arithmoi-0.4.1.1 failed during the building phase. The exception was:
ExitFailure 1
diagrams-1.2 depends on arithmoi-0.4.1.1 which failed to install.
diagrams-contrib-1.1.2.5 depends on arithmoi-0.4.1.1 which failed to install.


> cabal install llvm
...
Failed to install type-level-0.2.4
cabal: Error: some packages failed to install:
llvm-3.2.0.2 depends on type-level-0.2.4 which failed to install.
llvm-base-3.2.0.2 failed during the configure step. The exception was:
ExitFailure 1
type-level-0.2.4 failed during the building phase. The exception was:
ExitFailure 1


>Cabal install type-level
...
src\Data\TypeLevel\Num\Ops.hs:336:10:
    Illegal instance declaration for `Div10 x q'
      The liberal coverage condition fails in class `Div10'
        for functional dependency: `q -> x'
      Reason: lhs type `q' does not determine rhs type `x'
    In the instance declaration for `Div10 x q'
Failed to install type-level-0.2.4
cabal: Error: some packages failed to install:
type-level-0.2.4 failed during the building phase. The exception was:
ExitFailure 1


??

-------------------------------------------


More information about the Beginners mailing list