Can't install rust on my macOs

Hello everyone!
I just trying to install rust on my laptop and get an error


I read this doc The Rust Programming Language - The Rust Programming Language

Try to install it via brew.
brew install rustup-init

I suspect the issue is with curl:
You're likely using the built-in version, i.e. the BSD version rather than the GNU version.
If I'm correct, installing the latter version eg with Homebrew should solve the issue.

2 Likes

There is no BSD or GNU version of curl. There is only a single curl project. macOS ships with a pretty old version of curl though AFAIK.

2 Likes

The recommended command is:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Yours has --tlsv1.3 for some reason. These arguments are only extra precautions. The basic command should be fine too:

curl -sSf https://sh.rustup.rs | sh
1 Like