Skip to content

Commit e132e43

Browse files
authored
Rollup merge of rust-lang#59334 - ewk:readme, r=Mark-Simulacrum
Update build instructions in README.md Add additional instructions when `sudo ./x.py install` fails to complete the build. This resolves issues rust-lang#40108 and rust-lang#49269. r? @steveklabnik
2 parents 4fbe25c + 71dfb01 commit e132e43

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ of the rustc-guide instead._
4545
$ ./x.py build && sudo ./x.py install
4646
```
4747

48+
If after running `sudo ./x.py install` you see an error message like
49+
50+
```
51+
error: failed to load source for a dependency on 'cc'
52+
```
53+
54+
then run these two commands and then try `sudo ./x.py install` again:
55+
56+
```
57+
$ cargo install cargo-vendor
58+
```
59+
60+
```
61+
$ cargo vendor
62+
```
63+
4864
> ***Note:*** Install locations can be adjusted by copying the config file
4965
> from `./config.toml.example` to `./config.toml`, and
5066
> adjusting the `prefix` option under `[install]`. Various other options, such

0 commit comments

Comments
 (0)