2
2
3
3
The first step to using Rust is to install it! There are a number of ways to
4
4
install Rust, but the easiest is to use the ` rustup ` script. If you're on Linux
5
- or a Mac, all you need to do is this:
5
+ or a Mac, all you need to do is this:
6
6
7
7
> Note: you don't need to type in the ` $ ` s, they just indicate the start of
8
8
> each command. You’ll see many tutorials and examples around the web that
@@ -25,6 +25,12 @@ $ sh rustup.sh
25
25
[ insecurity ] : http://curlpipesh.tumblr.com
26
26
27
27
If you're on Windows, please download the appropriate [ installer] [ install-page ] .
28
+ ** NOTE:** By default, the Windows installer will not add Rust to the %PATH%
29
+ system variable. If this is the only version of Rust you are installing and you
30
+ want to be able to run it from the command line, click on "Advanced" on the
31
+ install dialog and on the "Product Features" page ensure "Add to PATH" is
32
+ installed on the local hard drive.
33
+
28
34
29
35
[ install-page ] : http://www.rust-lang.org/install.html
30
36
@@ -87,6 +93,11 @@ rustc 1.0.0 (a59de37e9 2015-05-13)
87
93
88
94
If you did, Rust has been installed successfully! Congrats!
89
95
96
+ If you didn't and you're on Windows, check that Rust is in your %PATH% system
97
+ variable. If it isn't, run the installer again, select "Change" on the "Change,
98
+ repair, or remove installation" page and ensure "Add to PATH" is installed on
99
+ the local hard drive.
100
+
90
101
This installer also installs a copy of the documentation locally, so you can
91
102
read it offline. On UNIX systems, ` /usr/local/share/doc/rust ` is the location.
92
103
On Windows, it's in a ` share/doc ` directory, inside wherever you installed Rust
@@ -101,5 +112,5 @@ resources include [the user’s forum][users], and
101
112
102
113
[ irc ] : irc://irc.mozilla.org/#rust
103
114
[ mibbit ] : http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
104
- [ users] : http://users.rust-lang.org/
115
+ [ users ] : http://users.rust-lang.org/
105
116
[ stackoverflow ] : http://stackoverflow.com/questions/tagged/rust
0 commit comments