Rust Installation

I'm trying to install rust and cargo on a macOS desktop by SSHing into the desktop. When I try commands like curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh to install rust, I get errors like info: downloading installer
dyld: cannot load 'rustup-init' (load command 0x80000034 is unknown)
sh: line 570: 18067 Abort trap: 6 "$@".

I've tried installing brew through SSH, but that has not worked either. Is there any other way to install Rust or is there some way to fix this?

Rustup 1.27.0 incompatible with macOS 10.14? · Issue #3708 · rust-lang/rustup · GitHub - looks like this problem, it seems to be fixed already and ticket contains a link to a working version of rustup. All you need is to see what script is doing and run the same command.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.