Skip to content

cannot run rustc on Raspberry PI #3431

@maxcli

Description

@maxcli

Problem

Using Raspberry PI 4 with Raspbian GNU/Linux ver 11
I installed Rustc : curl https://sh.rustup.rs/ -sSf | sh
I have /home/pi/.cargo/bin in my path

pi@rpi4:~ $ rustc –version
error: command failed: 'rustc': No such file or directory (os error 2)

note : I installed rustup after I installed rust

Any suggestions ?

Steps

curl https://sh.rustup.rs/ -sSf | sh
rustc –version

Possible Solution(s)

No response

Notes

No response

Rustup version

1.26.0 (5af9b9484 2023-04-05)

Installed toolchains

pi@rpi4:~ $ rustup show
Default host: aarch64-unknown-linux-gnu
rustup home:  /home/pi/.rustup

stable-aarch64-unknown-linux-gnu (default)
(error reading rustc version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions