g1sbi
May 9, 2023, 4:56pm
1
I'm trying to install rust on a Banana Pi M2 Zero, running Armbian 22.11.0. After running the install script, I get an endless loop of this:
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)
ending in
error: 'rustc' is not installed for the toolchain 'stable-armv7-unknown-linux-gnueabihf'
To install, run `rustup component add rustc`
running the command results in
bananapim2zero:~:% rustup component add rustc
info: syncing channel updates for 'stable-armv7-unknown-linux-gnueabihf'
732.1 KiB / 732.1 KiB (100 %) 95.4 KiB/s in 1s ETA: 0s
info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)
error: Missing manifest in toolchain 'stable-armv7-unknown-linux-gnueabihf'
is there a way to fix this?
Hey ! I found a solution to this problem in this rustup github thread , if it can help you or any google searcher.
TL;DR:
Try install stable version of your toolchain and it should tell you to f*** off:
~ $ rustup install stable
info: syncing channel updates for 'stable-arm-unknown-linux-gnueabihf'
info: latest update on 2018-05-29, rust version 1.26.1 (827013a31 2018-05-25)
error: component 'rust-docs' for 'arm-unknown-linux-gnueabihf' is unavailable for download
unsintall toolchain:
~ $ rustup uninstall stable
output:
info: uninstalling toolchain 'stable-arm-unknown-linux-gnueabihf'
info: toolchain 'stable-arm-unknown-linux-gnueabihf' uninstalled
Reinstall toolchain:
~ $ rustup install stable
output:
info: syncing channel updates for 'stable-arm-unknown-linux-gnueabihf'
info: latest update on 2018-05-29, rust version 1.26.1 (827013a31 2018-05-25)
info: downloading component 'rustc'
49.3 MiB / 49.3 MiB (100 %) 1.2 MiB/s ETA: 0 s
info: downloading component 'rust-std'
48.6 MiB / 48.6 MiB (100 %) 1.3 MiB/s ETA: 0 s
info: downloading component 'cargo'
3.9 MiB / 3.9 MiB (100 %) 853.6 KiB/s ETA: 0 s
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
stable-arm-unknown-linux-gnueabihf installed - rustc 1.26.1 (827013a31 2018-05-25)
If you check compiler version it should now works:
~ $ rustc --version
Output:
rustc 1.26.1 (827013a31 2018-05-25)
system
Closed
September 2, 2023, 11:54am
3
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.