From 80d9cb4dc5307774d3cbcdb1bdf1bdcb97184ce4 Mon Sep 17 00:00:00 2001 From: LightQuantum Date: Wed, 10 Jul 2024 02:42:04 +0800 Subject: [PATCH] mirror-help: ghcup update --- content/post/mirror-help/ghcup.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/post/mirror-help/ghcup.md b/content/post/mirror-help/ghcup.md index b5f9093..4f75e85 100644 --- a/content/post/mirror-help/ghcup.md +++ b/content/post/mirror-help/ghcup.md @@ -13,21 +13,19 @@ Ghcup 是一种用于安装 Haskell 的工具,它使得用户可以轻易地 ``` url-source: - OwnSource: "https://mirror.sjtu.edu.cn/ghcup/yaml/ghcup/data/ghcup-0.0.6.yaml" + OwnSource: "https://mirror.sjtu.edu.cn/ghcup/yaml/ghcup/data/ghcup-0.0.8.yaml" ``` 如果您尚未安装 ghcup,请在完成以上步骤后,于终端中执行以下指令(请不要以 root 用户执行),随后跟随屏幕上的指引完成安装。 -- 如果您运行的是 Linux, macOS (Intel), FreeBSD 或 WSL,请执行 - ``` curl --proto '=https' --tlsv1.2 -LsSf https://mirror.sjtu.edu.cn/ghcup/script/install.sh | sh ``` -- 如果您运行的是 macOS (Apple 芯片) 请执行 +若您希望使用官网的安装器,请执行以下指令 ``` -curl --proto '=https' --tlsv1.2 -LsSf https://mirror.sjtu.edu.cn/ghcup/script/install.sh | arch -x86_64 /bin/bash +curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | GHCUP_BASE_URL="https://mirror.sjtu.edu.cn/ghcup/packages/~ghcup" sh ``` **故障排除**