在 Windows 上安装 Haskell Stack 时完整性检查失败
我一直在尝试在Windows上安装Haskell堆栈,但是当我尝试此命令时:
>stack setup --resolver lts-18.26
发生以下错误:
The GHC located at C:\Users\Atanasia\AppData\Local\Programs\stack\x86_64-windows\ghc-8.10.7\bin\ghc-8.10.7.exe
failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command:
"C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe"
"C:\\Users\\Atanasia\\AppData\\Local\\Temp\\stack-sanity-check-8ee50ed0f920a51a\\Main.hs"
-no-user-package-db
Run from: C:\Users\Atanasia\AppData\Local\Temp\stack-sanity-check-8ee50ed0f920a51a\
此外,对于此命令:
>stack ghci -- --version
我接收:
Found an invalid compiler at "C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe":
Received ExitFailure 1 when running
Raw command:
"C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe"
--info
I've been trying to install Haskell Stack on Windows, but when I try this command:
>stack setup --resolver lts-18.26
the following error occurs:
The GHC located at C:\Users\Atanasia\AppData\Local\Programs\stack\x86_64-windows\ghc-8.10.7\bin\ghc-8.10.7.exe
failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command:
"C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe"
"C:\\Users\\Atanasia\\AppData\\Local\\Temp\\stack-sanity-check-8ee50ed0f920a51a\\Main.hs"
-no-user-package-db
Run from: C:\Users\Atanasia\AppData\Local\Temp\stack-sanity-check-8ee50ed0f920a51a\
Also, for this command:
>stack ghci -- --version
I receive:
Found an invalid compiler at "C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe":
Received ExitFailure 1 when running
Raw command:
"C:\\Users\\Atanasia\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-8.10.7\\bin\\ghc-8.10.7.exe"
--info
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论