Description
Problem
Attempting to install rust. Using latest stable release of rustup.sh downloaded from https://rustup.org/.
Initial installation of default profile fails to install rust-doc. Attempted installation of minimal profile succeeded. Default stable toolchain installed, rustc is available. When attempting to use rustc to build the cryptography library for python, its build tools say they can't find rustc.
Now I checked to make sure rustc existed with
$ which rustc
and it said:
$ /Users/admin/.cargo/bin/rustc
So it both does and does not exist.
Steps
I try and install rustc, despite it already existing:
$ rustup component add rustc
And it says:
$ Missing manifest in toolchain 'stable-x86_64-apple-darwin'
So I remove the toolchain and try to add it again:
$ rustup toolchain add stable
And it says:
$ info: installing component 'rust-std'
$ 2.9 MiB / 28.4 MiB ( 10 %) 0 B/s in 1s ETA: UnknownIllegal instruction: 4
Possible Solution(s)
No clue. Make something that works for MacOs El Capitan?
Notes
No response
Rustup version
rustup 1.25.2 (fae52a197 2023-02-01)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: latest update on 2023-03-09, rust version 1.68.0 (2c8cc3432 2023-03-06)
info: downloading component 'rustc'
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rust-docs'
info: downloading component 'rustfmt'
info: downloading component 'clippy'
info: removing previous version of component 'rustc'
warning: during uninstall component rustc was not found
info: removing previous version of component 'cargo'
warning: during uninstall component cargo was not found
info: removing previous version of component 'rust-std'
warning: during uninstall component rust-std was not found
info: removing previous version of component 'rust-docs'
warning: during uninstall component rust-docs was not found
info: removing previous version of component 'rustfmt'
warning: during uninstall component rustfmt was not found
info: removing previous version of component 'clippy'
warning: during uninstall component clippy was not found
info: installing component 'rustc'
Illegal instruction: 4
Installed toolchains
Default host: x86_64-apple-darwin
rustup home: /Users/admin/.rustup
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: latest update on 2023-03-09, rust version 1.68.0 (2c8cc3432 2023-03-06)
stable-x86_64-apple-darwin (default)
(rustc does not exist)