Skip to content

Commit c2226bd

Browse files
committed
Auto merge of #3458 - alexcrichton:docs, r=steveklabnik
Update README build instructions Closes #3437
2 parents e9e58b6 + ea182b8 commit c2226bd

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Cargo requires the following tools and packages to build:
3535
* `curl` (on Unix)
3636
* `cmake`
3737
* OpenSSL headers (only for Unix, this is the `libssl-dev` package on ubuntu)
38+
* `cargo` and `rustc`
3839

3940
First, you'll want to check out this repository
4041

@@ -43,31 +44,20 @@ git clone --recursive https://github.com/rust-lang/cargo
4344
cd cargo
4445
```
4546

46-
If you already have `rustc` and `cargo` installed elsewhere, you can simply run
47+
With `cargo` already installed, you can simply run:
4748

4849
```
4950
cargo build --release
5051
```
5152

52-
Otherwise, if you have `rustc` installed and not Cargo, you can simply run:
53+
Otherwise, you can also use a more traditional approach:
5354

5455
```sh
5556
./configure
5657
make
5758
make install
5859
```
5960

60-
If, however, you have neither `rustc` nor `cargo` previously installed you can
61-
run:
62-
63-
```sh
64-
python -B src/etc/install-deps.py
65-
./configure --local-rust-root="$PWD"/rustc
66-
make
67-
make install
68-
```
69-
Note: if building for 32 bit systems run `BITS=32 python -B ..`
70-
7161
More options can be discovered through `./configure`, such as compiling cargo
7262
for more than one target. For example, if you'd like to compile both 32 and 64
7363
bit versions of cargo on unix you would use:

0 commit comments

Comments
 (0)