借宝地问一下 rustup 的安装问题

394 views
Skip to first unread message

Chao Dong

unread,
Jan 13, 2017, 11:47:38 PM1/13/17
to TUNA 主邮件列表
使用的是 arch 发行版, pacman 已使用tuna 镜像(感谢)

但是在使用 pacman 下载的 rustup 时,下载 rustc, rust-std 时速度都很快,看的出来是走的国内路径。但是下cargo时又变成 s3.amazon 了.....

rustup install nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: downloading component 'rustc'
46.5 MiB / 46.5 MiB (100 %) 691.2 KiB/s ETA: 0 s
info: downloading component 'rust-std'
61.5 MiB / 61.5 MiB (100 %) 745.6 KiB/s ETA: 0 s
info: downloading component 'cargo'
error: component download failed for cargo-x86_64-unknown-linux-gnu
info: caused by: could not download file from 'https://s3.amazonaws.com/rust-lang-ci/cargo-builds/6291619896fc6a83d619945148670b6420aa06ec/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz' to '/home/neutronest/.rustup/tmp/20i50pjkkcnqa1n4_file
info: caused by: error during download
info: caused by: [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds)

这个还需要我配置什么路径么

非常感谢!

Zeng

unread,
Jan 14, 2017, 1:19:22 AM1/14/17
to TUNA 主邮件列表
rustup 下载 toolchain 时先会解析一个 toml, 然后从中获得 rustc, rust-stc, cargo 的下载地址.

一开始它们的下载地址的域名都是 static.rust-lang.org, 因此可以通过配置环境变量来替换下载地址, 参见我之前的 PR: https://github.com/rust-lang-nursery/rustup.rs/pull/521

但是后来不知道为什么 cargo 就改为托管在 amazon s3 上了, 下载的 url 发生了改变, 因此没法做替换. 如果要改的话我觉得需要给上游提 issue/PR.

Chao Dong

unread,
Jan 14, 2017, 4:20:13 AM1/14/17
to tuna-g...@googlegroups.com
非常感谢! 我去看看。







祝周末愉快。
Best regards.


--

---
You received this message because you are subscribed to a topic in the Google Groups "TUNA 主邮件列表" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tuna-general/jZkn7hLWAtg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tuna-general+unsubscribe@googlegroups.com.
To post to this group, send email to tuna-g...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
===============================================

neutronest .  ML & FP
Reply all
Reply to author
Forward
0 new messages