-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustup installation fails on raspberry pi 4 (raspbian) #3342
Comments
SOLVED using another architecture Thanks , bye |
Still a bug though. In fact I see 2 bugs here:
|
Yes this! Cost me days of grief hunting the issue down. |
Any update on how to fix this? I've been trying for weeks now |
I had the same issue. I think. it's not an issue of rustup. For some reason, raspberry OS shows that it has aarch64, but should arm.
or
You will see aarch64 GNU/Linux. OS: Linux (Unknown) aarch64 |
This seems to be relevant. https://forums.raspberrypi.com/viewtopic.php?t=349291 One data point that would be useful is the output of What needs to happen is someone checks two things:
If someone working on that gets stuck, we're happy to provide advice, but ultimately someone with access to the breaking environment needs to scratch this itch. |
Was this fixed? I found that root did not have Bash as default. source $HOME/.cargo/env root@home:/mnt/data # bash Woo! |
Duplicate of #3307. |
First time user of Rust here - trying to install python cryptography so that I can install python certbot so that I can enable ssl for my mqtt server - so I'm thoroughly in a yak-shaving hole here. This wasn't the most useful message just landing into this issue with no context... I think it translates to:
|
@samskiter Or alternatively the following worked for me: This might be slightly preferable since you don't have to install the incorrect architecture first, which might save time/trouble. I'm very happy to test this out if there's a fix, for me it happens on a pretty standard install of 64bit raspberry pi OS on a RPi4:
I've had the default install work fine on 32-bit pi before, so this might just be on 64 bit, which I guess not that many people will be running at the moment? |
@bmwebster The script on |
@rami3l I tried the following on the Pi I had trouble with before:
This still showed |
I am currently facing the same problem on a Raspberry Pi 5 The workaround #3342 (comment) by @bmwebster appears to work for me |
Oh I fixed that a while back. Need a hand?
--
Sent from Mail.ru app for Android Monday, 11 December 2023, 02:07AM -08:00 from Bennet Bleßmann ***@***.*** :
…I am currently facing the same problem on a Raspberry Pi 5
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you commented. Message ID: @ github . com>
|
@bmwebster Sorry, I got this wrong myself in #3342 (comment). Fortunately, we will cut a Closing again as a duplicate of #3307. |
@pistoni @Skgland @bmwebster @samskiter We have deployed an early version of 1.27 and would like to know if this new version works for you out of the box. To test, simply run the installation with the |
@rami3l Thanks for the update - this now works for me, running as: export RUSTUP_UPDATE_ROOT=https://dev-static.rust-lang.org/rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh I get Thanks for your help! |
Problem
I need the latest version ot rustc to install the last release of home assistant, but it seems that the executables for a wrong architecture were downloaded using rustup default installation.
As a result I get
error: command failed: 'rustc': No such file or directory (os error 2)
Help or suggestions?
Thanks, Massimo
Steps
Steps followed:
(homeassistant) homeassistant@raspix:/srv/homeassistant $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
warning: it looks like you have an existing installation of Rust at:
warning: /usr/bin
warning: It is recommended that rustup be the primary Rust installation.
warning: Otherwise you may have confusion unless you are careful with your PATH
warning: If you are sure that you want both rustup and your already installed Rust
warning: then please reply
y' or
yes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yeswarning: or pass `-y' to ignore all ignorable checks.
error: cannot install while Rust is installed
Continue? (y/N) y
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:
/home/homeassistant/.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory is located at:
/home/homeassistant/.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:
/home/homeassistant/.cargo/bin
This path will then be added to your PATH environment variable by
modifying the profile files located at:
/home/homeassistant/.profile
/home/homeassistant/.bashrc
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: aarch64-unknown-linux-gnu
default toolchain: stable (default)
profile: default
modify PATH variable: yes
I'm going to ask you the value of each of these installation options.
You may simply press the Enter key to leave unchanged.
Default host triple? [aarch64-unknown-linux-gnu]
Default toolchain? (stable/beta/nightly/none) [stable]
Profile (which tools and data to install)? (minimal/default/complete) [default]
Modify PATH variable? (Y/n)
Current installation options:
default host triple: aarch64-unknown-linux-gnu
default toolchain: stable
profile: default
modify PATH variable: yes
info: profile set to 'default'
info: setting default host triple to aarch64-unknown-linux-gnu
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2023-04-20, rust version 1.69.0 (84c898d65 2023-04-16)
info: downloading component 'cargo'
5.8 MiB / 5.8 MiB (100 %) 3.0 MiB/s in 2s ETA: 0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
13.4 MiB / 13.4 MiB (100 %) 3.0 MiB/s in 5s ETA: 0s
info: downloading component 'rust-std'
33.2 MiB / 33.2 MiB (100 %) 3.0 MiB/s in 12s ETA: 0s
info: downloading component 'rustc'
73.4 MiB / 73.4 MiB (100 %) 2.7 MiB/s in 27s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
5.8 MiB / 5.8 MiB (100 %) 5.6 MiB/s in 1s ETA: 0s
info: installing component 'clippy'
info: installing component 'rust-docs'
13.4 MiB / 13.4 MiB (100 %) 1.4 MiB/s in 7s ETA: 0s
info: installing component 'rust-std'
33.2 MiB / 33.2 MiB (100 %) 4.9 MiB/s in 7s ETA: 0s
info: installing component 'rustc'
73.4 MiB / 73.4 MiB (100 %) 5.3 MiB/s in 13s ETA: 0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-aarch64-unknown-linux-gnu'
stable-aarch64-unknown-linux-gnu installed - (error reading rustc version)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).
To configure your current shell, run:
source "$HOME/.cargo/env"
(homeassistant) homeassistant@raspix:/srv/homeassistant $ source "$HOME/.cargo/env"
(homeassistant) homeassistant@raspix:/srv/homeassistant $ rustup --version
rustup 1.26.0 (5af9b94 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active
rustc
version is(error reading rustc version)
(homeassistant) homeassistant@raspix:/srv/homeassistant $ rustc --version
error: command failed: 'rustc': No such file or directory (os error 2)
(homeassistant) homeassistant@raspix:/srv/homeassistant $
Possible Solution(s)
No response
Notes
No response
Rustup version
1.26.0
Installed toolchains
all
The text was updated successfully, but these errors were encountered: