1
OS:openSUSE的Tumbleweed公司跟上时代的堆栈设置
为堆栈文件说,我可以用zypper的从坦布尔韦德默认库安装堆栈。通往垃圾桶的路径是/usr/bin/stack
。
我跟着官方主页上的堆栈教程,并执行stack new helloworld new-template
(它的工作原理)。 cd
进入文件夹后,我想跑stack setup
,但是这一次失败:
The GHC located at /usr/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Running /usr/bin/ghc /tmp/stack-sanity-check9034/Main.hs
-no-user-package-db in directory /tmp/stack-sanity-check9034/
exited with ExitFailure 1
/tmp/stack-sanity-check9034/Main.hs:1:8:
Could not find module ‘Distribution.Simple’
Use -v to see a list of the files searched for.
一些谷歌上搜索我仍然不知道怎样做才能解决错误后。这就像我错过了一件非常基本的事情。
在stack.yaml文件中,尝试添加/设置'system-ghc:false'并重新运行堆栈设置。您希望堆栈下载并安装自己的ghc(它将放置在〜/ .stack中),而不是在/ usr/bin/ghc中使用系统提供的版本。 – ErikR
谢谢。请将其发布为答案,以便我可以将问题标记为已解决。 – Paradiesstaub