【问题标题】:Haskell stack cant find installed ghcHaskell 堆栈找不到已安装的 ghc
【发布时间】: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


【解决方案1】:

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

【讨论】:

  • ncurses5-compat-libs也是必须的
  • 我只安装了ncurses5-compat-libs
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-10
  • 1970-01-01
  • 2012-07-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多