Haskell堆栈找不到安装的ghc

时间:2017-07-14 02:53:46

标签: linux haskell-stack

已经设置的项目无法找到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

1 个答案:

答案 0 :(得分:8)

这个问题在上游已知。 (https://github.com/commercialhaskell/stack/issues/3268)。正如本期所述,从AUR安装libtinfo会有所帮助,因为GHC有一个tinfo-nopie绑定器。我还没有遇到TimoFreiberg(正在努力提供ncurses6-nopie绑定者)报告的问题。