rust-lang / book

The Rust Programming Language
https://doc.rust-lang.org/book/
Other
15.08k stars 3.4k forks source link

Installing rustup on MacOS - #3649

Open vitasam opened 1 year ago

vitasam commented 1 year ago

Hello, I was trying the shell installation command, described in a dead-tree form of the book (Chapter 1. Installing rustup on Linux or macOS) on a MacBook: curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh

Curl's response: curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.

Is this a typo in the command? The official Rust web-site said it should be version 1.2: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

With this command the installation was Ok:

info: downloading installer

Welcome to Rust!
...
Raghav-Bell commented 1 year ago

@vitasam Yes it may be typos in dead-tree form. In both documentation and online book it is

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

chriskrycho commented 6 months ago

Ah, we should definitely get this fixed in the print copy in the 2024 revision. Thank you!