Skip to content

Commit 7550e32

Browse files
committedDec 16, 2016
Update book for rustup
1 parent 38cb687 commit 7550e32

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed
 

‎src/doc/book/getting-started.md

+23-9
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,30 @@ see the website][platform-support].
2626

2727
## Installing Rust
2828

29-
All we need to do is open a terminal and type this:
29+
All you need to do on Unix systems like Linux and macOS is open a
30+
terminal and type this:
3031

3132
```bash
3233
$ curl https://sh.rustup.rs -sSf | sh
3334
```
3435

35-
This will download a script, and start the installation. If it all goes well,
36-
you’ll see this appear:
36+
It will download a script, and start the installation. If everything
37+
goes well, you’ll see this appear:
3738

3839
```text
3940
Rust is installed now. Great!
4041
```
4142

43+
Installing on Windows is nearly as easy: download and run
44+
[rustup-init.exe]. It will start the installation in a console and
45+
present the above message on success.
46+
47+
For other installation options and information, visit the [install]
48+
page of the Rust website.
49+
50+
[rustup-init.exe]: https://win.rustup.rs
51+
[install]: https://www.rust-lang.org/install.html
52+
4253
## Uninstalling
4354

4455
Uninstalling Rust is as easy as installing it:
@@ -59,12 +70,15 @@ You should see the version number, commit hash, and commit date.
5970

6071
If you do, Rust has been installed successfully! Congrats!
6172

62-
If you don't and you're on Windows, check that Rust is in your %PATH% system
63-
variable: `$ echo %PATH%`. If it isn't, run the installer again, select "Change"
64-
on the "Change, repair, or remove installation" page and ensure "Add to PATH" is
65-
installed on the local hard drive. If you need to configure your path manually,
66-
you can find the Rust executables in a directory like
67-
`"C:\Program Files\Rust stable GNU 1.x\bin"`.
73+
If you don't, that probably means that the `PATH` environment variable
74+
doesn't include Cargo's binary directory, `~/.cargo/bin` on Unix, or
75+
`%USERPROFILE%\.cargo\bin` on Windows. This is the directory where
76+
Rust development tools live, and most Rust developers keep it in their
77+
`PATH` environment variable, which makes it possible to run `rustc` on
78+
the command line. Due to differences in operating systems, command
79+
shells, and bugs in installation, you may need to restart your shell,
80+
log out of the system, or configure `PATH` manually as appropriate for
81+
your operating environment.
6882

6983
Rust does not do its own linking, and so you’ll need to have a linker
7084
installed. Doing so will depend on your specific system. For

0 commit comments

Comments
 (0)
Please sign in to comment.