@@ -6,52 +6,61 @@ documentation.
6
6
7
7
## Installation
8
8
9
- The Rust compiler is slightly unusual in that it is written in Rust and
10
- therefore must be built by a precompiled "snapshot" version of itself (made in
11
- an earlier state of development). As such, source builds require that:
9
+ The Rust compiler currently must be built from a [ tarball ] , unless you
10
+ are on Windows, in which case using the [ installer ] [ win-exe ] is
11
+ recommended.
12
12
13
- * You are connected to the internet, to fetch snapshots.
13
+ Since the Rust compiler is written in Rust, it must be built by
14
+ a precompiled "snapshot" version of itself (made in an earlier state
15
+ of development). As such, source builds require a connection to
16
+ the Internet, to fetch snapshots, and an OS that can execute the
17
+ available snapshot binaries.
14
18
15
- * You can at least execute snapshot binaries of one of the forms we offer
16
- them in. Currently we build and test snapshots on:
19
+ Snapshot binaries are currently built and tested on several platforms:
17
20
18
- * Windows (7, server 2008 r2) x86 only
19
- * Linux 2.6.x (various distributions) x86 and x86-64
20
- * OSX 10.6 ("Snow Leopard") or 10.7 ("Lion") x86 and x86-64
21
+ * Windows (7, Server 2008 R2), x86 only
22
+ * Linux (various distributions), x86 and x86-64
23
+ * OSX 10.6 ("Snow Leopard") or greater, x86 and x86-64
21
24
22
- You may find other platforms work, but these are our "tier 1" supported build
23
- environments that are most likely to work. Further platforms will be added to
24
- the list in the future via cross-compilation.
25
+ You may find that other platforms work, but these are our "tier 1"
26
+ supported build environments that are most likely to work.
25
27
26
- To build from source you will also need the following prerequisite packages:
28
+ > *** Note:*** Windows users should read the detailed
29
+ > [ getting started] [ wiki-start ] notes on the wiki. Even when using
30
+ > the binary installer the Windows build requires a MinGW installation,
31
+ > the precise details of which are not discussed here.
32
+
33
+ To build from source you will also need the following prerequisite
34
+ packages:
27
35
28
36
* g++ 4.4 or clang++ 3.x
29
- * python 2.6 or later
37
+ * python 2.6 or later (but not 3.x)
30
38
* perl 5.0 or later
31
39
* gnu make 3.81 or later
32
40
* curl
33
41
34
- Assuming you're on a relatively modern Linux/OSX system and have met the
35
- prerequisites, something along these lines should work:
42
+ Assuming you're on a relatively modern * nix system and have met the
43
+ prerequisites, something along these lines should work.
36
44
45
+ $ wget http://dl.rust-lang.org/dist/rust-0.4.tar.gz
37
46
$ tar -xzf rust-0.4.tar.gz
38
47
$ cd rust-0.4
39
48
$ ./configure
40
49
$ make && make install
41
50
42
- When complete, make install will place the following programs into
43
- /usr/local/bin:
44
-
45
- * rustc, the Rust compiler
46
- * rustdoc, the API-documentation tool
47
- * cargo, the Rust package manager
51
+ You may need to use ` sudo make install ` if you do not normally have
52
+ permission to modify the destination directory. The install locations
53
+ can be adjusted by passing a ` --prefix ` argument to
54
+ ` configure ` . Various other options are also supported, pass ` --help `
55
+ for more information on them.
48
56
49
- In addition to a manual page under /usr/local/share/man and a set of host and
50
- target libraries under /usr/local/lib/rustc.
57
+ When complete, ` make install ` will place several programs into
58
+ ` /usr/local/bin ` : ` rustc ` , the Rust compiler; ` rustdoc ` , the
59
+ API-documentation tool, and ` cargo ` , the Rust package manager.
51
60
52
- The install locations can be adjusted by passing a --prefix argument to
53
- configure. Various other options are also supported, pass --help for more
54
- information on them.
61
+ [ wiki-start ] : https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
62
+ [ tarball ] : http://dl.rust-lang.org/dist/rust-0.4.tar.gz
63
+ [ win-exe ] : http://dl.rust-lang.org/dist/rust-0.4-install.exe
55
64
56
65
57
66
## License
0 commit comments