Rust installer: armhf vs aarch64
I am trying to use the official and recommended way to installed rust:
curl https://sh.rustup.rs -sSf | sh
However, this fails with
$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
sh: /tmp/tmp.DQjhE17803/rustup-init: /lib/ld-linux-aarch64.so.1: bad ELF interpreter: No such file or directory
My guess is that this is because uname -m
reports aarch64
but there is no corresponding ld lib:
$ ls -lah /lib/ld-linux*
lrwxrwxrwx 1 root root 10 Mar 28 02:56 /lib/ld-linux-armhf.so.3 -> ld-2.25.so
lrwxrwxrwx 1 root root 24 Mar 28 02:56 /lib/ld-linux.so.3 -> /lib/ld-linux-armhf.so.3
What exactly is wrong here? Is this an issue with the rust installer or an inconsistency in SFOS?