使用ghcup安装Haskell时MSys2工具链出错



我的Haskell安装突然决定自行中断,所以我卸载了它。当我尝试使用ghcup再次安装时,我在尝试安装MSys2工具链时遇到了以下错误:

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Exec: Error executing command curl.exe with arguments '-o
C:Users~AppDataLocalTemp\msys2-x86_64-latest.sfx.exe
https://repo.msys2.org/distrib/msys2-x86_64-latest.sfx.exe'
At line:170 char:11
+           throw ('Exec: Error executing command {0} with arguments '' ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (Exec: Error exe...latest.sfx.exe':String) [], RuntimeException
+ FullyQualifiedErrorId : Exec: Error executing command curl.exe with arguments '-o C:Users~AppDataLocalT
emp\msys2-x86_64-latest.sfx.exe https://repo.msys2.org/distrib/msys2-x86_64-latest.sfx.exe'

我以前安装过Haskell,但以前没有遇到过这个错误。这可能意味着什么?非常感谢。

注意:此问题已修复!我所要做的就是打开MSys2并输入echo "ssl-no-revoke" > ~/_curlrc。这真是太有魅力了!

相关内容

  • 没有找到相关文章

最新更新