File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Cargo requires the following tools and packages to build:
35
35
* ` curl ` (on Unix)
36
36
* ` cmake `
37
37
* OpenSSL headers (only for Unix, this is the ` libssl-dev ` package on ubuntu)
38
+ * ` cargo ` and ` rustc `
38
39
39
40
First, you'll want to check out this repository
40
41
@@ -43,31 +44,20 @@ git clone --recursive https://github.com/rust-lang/cargo
43
44
cd cargo
44
45
```
45
46
46
- If you already have ` rustc ` and ` cargo ` installed elsewhere , you can simply run
47
+ With ` cargo ` already installed , you can simply run:
47
48
48
49
```
49
50
cargo build --release
50
51
```
51
52
52
- Otherwise, if you have ` rustc ` installed and not Cargo, you can simply run :
53
+ Otherwise, you can also use a more traditional approach :
53
54
54
55
``` sh
55
56
./configure
56
57
make
57
58
make install
58
59
```
59
60
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
-
71
61
More options can be discovered through ` ./configure ` , such as compiling cargo
72
62
for more than one target. For example, if you'd like to compile both 32 and 64
73
63
bit versions of cargo on unix you would use:
You can’t perform that action at this time.
0 commit comments