【发布时间】:2017-07-14 02:53:46
【问题描述】:
已设置的项目无法找到 GHC。 堆栈构建结果:
No compiler found, expected minor version match with ghc-8.0.2 (x86_64-ncurses6-nopie)
(based on resolver setting in /home/iam/Work/has/grove/stack.yaml).
To install the correct GHC into /home/iam/.stack/programs/x86_64-linux/, try running "stack
setup" or use the "--install-ghc" flag. To use your system GHC installation,
run "stack config set system-ghc --global true", or use the "--system-ghc" flag.
堆栈设置结果:
Unable to find installation URLs for OS key: linux64-ncurses6-nopie
However, in .stack-work, in the install file there is a folder called x86_64-linux-ncurses6,
not linux64-ncurses6-nopie
Stack 是由 pacman 安装的。 版本 1.4.0 x86_64,项目使用解析器:lts-8.21
【问题讨论】:
-
我可以确认这个问题。
-
我也确认了这一点。甚至找不到系统范围的 ghc
-
太令人沮丧了,一整天都浪费了。我试过使用 system-ghc 选项,很多链接器错误......
-
你有stack.yaml吗?
-
@Reactormonk 你是什么意思?显示 stack.yaml?可以设置哪些选项来解决问题?
标签: linux haskell-stack