Skip to content

Commit

Permalink
Rollup merge of rust-lang#59334 - ewk:readme, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Centril committed Mar 26, 2019
2 parents 205d20a + 71dfb01 commit 7b70515
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b70515

Please sign in to comment.