about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEddie Kovsky <ewk@edkovsky.org>2019-03-20 22:21:53 -0600
committerEddie Kovsky <ewk@edkovsky.org>2019-03-20 22:21:53 -0600
commit71dfb01e8f8e36aaafa3139e264a42c421d79d28 (patch)
tree11f5485f7c31de2d5e4a54b48103cfbcec3a3ab2
parent33b3b136c50700b1f2df9b00259ae98c79f72abb (diff)
downloadrust-71dfb01e8f8e36aaafa3139e264a42c421d79d28.tar.gz
rust-71dfb01e8f8e36aaafa3139e264a42c421d79d28.zip
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.
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 514e420ca45..55e6e8d7f18 100644
--- a/README.md
+++ b/README.md
@@ -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