尝试安装 cabal 时 ghcup 安装失败
当尝试从官方页面使用curl安装ghcup时,会抛出以下错误。
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
乌班图:
Debug: Identified Platform as: Linux Ubuntu, 20.04
Debug: last access was 30.9227239s ago, cache interval is 300s
Debug: Decoding yaml at: /root/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz as file /tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
"/tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz.tmp",
"https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz"] failed with exit code 1.
Mac:
Debug: Identified Platform as: Darwin
Debug: last access was 124.44841s ago, cache interval is 300s
Debug: Decoding yaml at: /Users/orelvislagovasallo/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz as file /private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
"/private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz.tmp",
"https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz"] failed with exit code 1.
When trying to install ghcup using curl from the official page, it throws the following error.
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
Ubuntu:
Debug: Identified Platform as: Linux Ubuntu, 20.04
Debug: last access was 30.9227239s ago, cache interval is 300s
Debug: Decoding yaml at: /root/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz as file /tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
"/tmp/ghcup-532680fdab846e84/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz.tmp",
"https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-ubuntu-16.04.tar.xz"] failed with exit code 1.
Mac:
Debug: Identified Platform as: Darwin
Debug: last access was 124.44841s ago, cache interval is 300s
Debug: Decoding yaml at: /Users/orelvislagovasallo/.ghcup/cache/ghcup-0.0.7.yaml
Warn: New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
Debug: Requested to install cabal version 3.4.0.0
Info: downloading: https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz as file /private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz
Error: Download failed: Process "curl" with arguments ["-fL", "-o",
"/private/var/folders/d6/t4n84vb949z0w4lym5lp72yw0000gn/T/ghcup-df9e399af7820a34/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz.tmp",
"https://downloads.haskell.org/~cabal/cabal-install-3.4.0.0/cabal-install-3.4.0.0-x86_64-darwin-sierra.tar.xz"] failed with exit code 1.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论