Rollup merge of #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 #40108 and #49269.

r? @steveklabnik
This commit is contained in:
Mazdak Farrokhzad 2019-03-26 09:05:46 +01:00 committed by GitHub
commit e132e43e85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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