iT邦幫忙

0

rust 安裝問題...

  • 分享至 

  • xImage

各位前輩好:
我在安裝完visual studio community 2022 後利用rustup安裝rust,卻發生無法安裝rustc的問題,rustup-init相關執行內容如下:

 Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

 C:\Users\fredf\.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

 C:\Users\fredf\.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

 C:\Users\fredf\.cargo\bin

This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


  default host triple: x86_64-pc-windows-msvc
    default toolchain: stable (default)
              profile: default
 modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2024-08-08, rust version 1.80.1 (3f5fd8dd4 2024-08-06)
info: downloading component 'cargo'
 6.4 MiB /   6.4 MiB (100 %)   4.8 MiB/s in  1s ETA:  0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
15.9 MiB /  15.9 MiB (100 %)   5.1 MiB/s in  3s ETA:  0s
info: downloading component 'rust-std'
18.2 MiB /  18.2 MiB (100 %)   4.9 MiB/s in  3s ETA:  0s
info: downloading component 'rustc'
57.8 MiB /  57.8 MiB (100 %)   4.3 MiB/s in 13s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
15.9 MiB /  15.9 MiB (100 %)   3.3 MiB/s in  4s ETA:  0s
info: installing component 'rust-std'
18.2 MiB /  18.2 MiB (100 %)  17.8 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
57.8 MiB /  57.8 MiB (100 %)  18.8 MiB/s in  3s ETA:  0s
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'
info: retrying renaming 'C:\Users\fredf\.rustup\tmp\p0k1o02nn9el6hxd_dir\rustc\bin/rustc.exe' to 'C:\Users\fredf\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin/rustc.exe'

想請問各位先進,應該如何解決? 謝謝

froce iT邦大師 1 級 ‧ 2024-08-26 13:46:06 檢舉
https://github.com/rust-lang/rustup/issues/2248

防毒先關掉試試
謝謝前輩分享,我會再試試,謝謝您
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答