Skip to content

Commit 8e7e3a7

Browse files
committed
---
yaml --- r: 39913 b: refs/heads/dist-snap c: 4c833af h: refs/heads/master i: 39911: d9a46e8 v: v3
1 parent e92d2f4 commit 8e7e3a7

File tree

2 files changed

+37
-28
lines changed

2 files changed

+37
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
99
refs/heads/incoming: e90142e536c150df0d9b4b2f11352152177509b5
10-
refs/heads/dist-snap: b7b22179761a71df4ec77185b54f134601130592
10+
refs/heads/dist-snap: 4c833af038bec879c8124520c68e7f27034d41ab
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/README.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,61 @@ documentation.
66

77
## Installation
88

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.
1212

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.
1418

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:
1720

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
2124

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.
2527

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:
2735

2836
* g++ 4.4 or clang++ 3.x
29-
* python 2.6 or later
37+
* python 2.6 or later (but not 3.x)
3038
* perl 5.0 or later
3139
* gnu make 3.81 or later
3240
* curl
3341

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.
3644

45+
$ wget http://dl.rust-lang.org/dist/rust-0.4.tar.gz
3746
$ tar -xzf rust-0.4.tar.gz
3847
$ cd rust-0.4
3948
$ ./configure
4049
$ make && make install
4150

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.
4856

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.
5160

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
5564

5665

5766
## License

0 commit comments

Comments
 (0)