mb1*_*b14 13 macos haskell cabal
我正在尝试安装diagrams(在cabal沙箱中)并且在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.
Run Code Online (Sandbox Code Playgroud)
我不确定为什么我没有安装LLVM后端或为什么它可以执行opt.任何的想法 ?(我在OS 10.8上使用GHC 7.6.3)
cabal install diagrams --constraint "arithmoi -llvm"
Run Code Online (Sandbox Code Playgroud)
有一种方法没有指定版本范围.这对我有用.
(自己的答案:我发现有人有同样的问题)我通过在可能的 cabal 文件中添加以下行将 arithmoi 降级到 4.0.4 解决了这个问题:
build-depend: arithmoi >= 0.4 < 0.4.1.1
Run Code Online (Sandbox Code Playgroud)
不得不删除沙箱并从头开始重新安装所有内容,但最终成功了。
| 归档时间: |
|
| 查看次数: |
1009 次 |
| 最近记录: |