Zoki
April 22, 2021, 6:08pm
21
Can anyone help with installing rust on a raspberry pi.
After installing rust, using
curl --proto ‘=https’ --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
even when changing terminals
when I try to run cargo… I get…
cargo no such file or directory (os error 2)
Zoki
April 22, 2021, 6:39pm
22
GOT IT TO WORK
Google is your friend
Download the installer as per the link above:
Code: Select all
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
When prompted select option “2) Custom installation”
When prompted for “Default host triple?” enter “arm-unknown-linux-gnueabihf”
Other options are up to you, I selected “nightly” for the default toolchain, “complete” for the profile and “y” to update my PATH. And finally 1) to kick off the installation.
After that “cargo” works fine again.
from… Installing Rust on Pi 4, 32 bit Pi OS. - Raspberry Pi Forums
6 Likes
Zoki
May 13, 2021, 9:35am
23
bumping this for the pi gang.
Instructions bit rusty after 2 weeks, have put them all in first post in this thread.
1 Like
I have an error on api / cli cross -compilation, with the last version :
Compiling cpufeatures v0.1.1
error[E0432]: unresolved import `libc::HWCAP_AES`
--> /home/richard/.cargo/registry/src/github.com-1ecc6299db9ec823/cpufeatures-0.1.1/src/aarch64.rs:55:21
|
55 | pub use libc::$hwcap;
| ^^^^^^^^^^^^ no `HWCAP_AES` in the root
...
70 | / __expand_check_macro! {
71 | | ("aes", HWCAP_AES), // Enable AES support.
72 | | ("sha2", HWCAP_SHA2), // Enable SHA1 and SHA256 support.
73 | | ("sha3", HWCAP_SHA3), // Enable SHA512 and SHA3 support.
Node compilation is ok though
Zoki
May 13, 2021, 12:13pm
25
Compiling on the raspberry pi was a success, though when it finally compiled test net 5.1 was released.
Will join the test net at some point soon.
… and want to test if I can put my node on my new external nvme 1TB drive.
1 Like
@Zoki How much time did it take ?
1 Like
Zoki
May 13, 2021, 12:37pm
27
Didn’t time it.
I will next time using the linux
time
command
3 Likes
It would be great if ever you have time in the next Testnet to share the compiled binaries
I have tried to install rust on my RPi 4 with your guide, but it fails invariably with a memory allocation error when downloading rustc.
1 Like
Zoki
May 18, 2021, 7:15pm
30
I think the team did they were going to soon start including bins for pi.
3 Likes