Update build instructions in README.md

Add additional instructions when `sudo ./x.py install` fails to
complete the build.

This resolves issues #40108 and #49269.
This commit is contained in:
Eddie Kovsky 2019-03-20 22:21:53 -06:00
parent 33b3b136c5
commit 71dfb01e8f
1 changed files with 16 additions and 0 deletions

View File

@ -45,6 +45,22 @@ of the rustc-guide instead._
$ ./x.py build && sudo ./x.py install
```
If after running `sudo ./x.py install` you see an error message like
```
error: failed to load source for a dependency on 'cc'
```
then run these two commands and then try `sudo ./x.py install` again:
```
$ cargo install cargo-vendor
```
```
$ cargo vendor
```
> ***Note:*** Install locations can be adjusted by copying the config file
> from `./config.toml.example` to `./config.toml`, and
> adjusting the `prefix` option under `[install]`. Various other options, such