在 Windows 上安装 Haskell Stack 时完整性检查失败

发布于 2025-01-20 11:31:36 字数 1169 浏览 5 评论 0原文

我一直在尝试在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文