Подтвердить что ты не робот

Невозможно установить диаграммы /arithmoi на Mac

Я пытаюсь установить diagrams (в изолированной песочнице), и он не работает во время установки arithmoi, в результате чего появляется следующее сообщение:

Preprocessing library arithmoi-0.4.1.1...

no location info>:
    Warning: Couldn't figure out LLVM version!
         Make sure you have installed LLVM
ghc: could not execute: opt
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 depends on arithmoi-0.4.1.1 which failed to install.

Я не уверен, почему у меня нет бэкэнда LLVM или почему он может выполнить opt. Есть идеи? (Я использую GHC 7.6.3 на OS 10.8)

4b9b3361

Ответ 1

(собственный ответ: в случае, если у кого-то есть такая же проблема) Я решил его, понизив арифмоид до 4.0.4, добавив следующую строку в файл can cab:

build-depend: arithmoi >= 0.4 < 0.4.1.1

Пришлось удалить песочницу и переустановить все с нуля, но работал в конце.

Ответ 2

Вы можете построить arithmoi без LLVM с помощью cabal install arithmoi -f -llvm.

Ответ 3

cabal install diagrams --constraint "arithmoi -llvm"

Существует способ без указания диапазона версии. Это сработало для меня.