我一直在尝试使用 Rustup 一段时间,当我尝试用它做任何事情时它会说:

info: caused by: [1] Unsupported protocol (Protocol "https" not supported or disabled in libcurl)

我知道 cURL 启用了 HTTPS — 我刚刚尝试使用它并且效果很好。

最佳答案

可能不是你想听到的,但他们有 known issues at the moment with ARM

这种解决方法似乎对我有用:

  • 直接从 https://github.com/rust-lang-nursery/rustup.rs 下载适用于你平台的 rustup-init
  • env RUSTUP_USE_HYPER=1 ./rustup-init

  • 在运行 rustup 脚本之前,它也应该适用于 export RUSTUP_USE_HYPER=1(假设您没有使用 tcsh),但以上是我测试和使用的。

    关于curl - Rustup 表示 libcurl 中不支持或禁用协议(protocol) "https",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43379976/

    10-10 18:33