小编Aus*_*n T的帖子

ghcup 安装:写入 ~/.ghcup/cache 目录时权限被拒绝

我尝试在 Ubuntu 上安装 ghcup:

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

使用默认选项(添加到 .bashrc 之前,不安装 HLS,不安装 Stack)。

问题是,permission denied当脚本尝试将ghcup-0.0.6.yaml.tmp文件写入~/.ghcup/cache目录时,我收到错误,但我不确定原因。

该目录的权限为 1775 (drwxrwxr-x)。将它们升级到 1777 (drwxrwxrwt) 并重新运行curl 命令会产生相同的错误。目录所有者是我(不是 root),并且我正在运行 curl 命令,而没有sudo按照 ghcup 安装说明的指示。

完整命令输出:

                                 Dload  Upload   Total   Spent    Left  Speed
100 24.3M  100 24.3M    0     0  5782k      0  0:00:04  0:00:04 --:--:-- 5783k
[ Info  ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml as file /home/austin/.ghcup/cache/ghcup-0.0.6.yaml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload …
Run Code Online (Sandbox Code Playgroud)

permissions curl haskell ghcup

5
推荐指数
1
解决办法
1082
查看次数

标签 统计

curl ×1

ghcup ×1

haskell ×1

permissions ×1