2017-07-14 21 views
7

既に設定されているプロジェクトは、GHCを見つけることができません。中Haskell stack cant find 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 

スタックがパックマンによってインストールされた スタックに結果を構築します。 バージョン1.4.0 x86_64、プロジェクトではリゾルバが使用されています。lts-8.21

+2

この問題を確認できます。 –

+0

私もこれを確認します。システム全体でさえ、ghc cound'tは見つかりませんでした – WellTyped

+0

とてもイライラする、一日が失われました。私はsystem-ghcオプションを使用しようとしました。リンカのエラーがたくさんあります... – WellTyped

答えて

8

この問題はアップストリームで確認されています。 (https://github.com/commercialhaskell/stack/issues/3268)。この問題で示唆されているように、GHCのバインドリストtinfo-nopieがあるため、AURからlibtinfoをインストールすると役立ちます。この問題報告でTimoFreiberg(誰でもncurses6-nopieバインドを提供している)が報告した問題にはまだ触れていません。

+1

'ncurses5-compat-libs'も必要です – osager

+1

' ncurses5-compat-libs'をインストールするだけでそれができました。 – tuxayo

関連する問題