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
Hello everyone!
I just trying to install rust on my laptop and get an error
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.
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.
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
Just FYI the Rust Book book got a PR to update the command to use --tlsv1.2
fix macos installation problem by theo-coder · Pull Request #3469 · rust-lang/book · GitHub
I already solved the problem. Thanks a lot for all your advices. If I don't mistake I just installed it with homebrew.
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.