Skip to content

Commit

Permalink
Update troubleshoot-rust-issues.md (#2145)
Browse files Browse the repository at this point in the history
* Update troubleshoot-rust-issues.md

Updated for readability and M1 is not the latest so M-series processors should be better

* Update content/md/en/docs/install/troubleshoot-rust-issues.md

---------

Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
ForestKeeperIO and shawntabrizi authored Aug 28, 2024
1 parent d40fcba commit 406d3b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/md/en/docs/install/troubleshoot-rust-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ WASM_BUILD_TOOLCHAIN=nightly-<yyyy-MM-dd> cargo build --release
```

This command builds the _runtime_ using the specified nightly toolchain.
The rest of project is compiled using the _default_ toolchain, that is, the latest version of the `stable` toolchain that you have installed.
The rest of the project is compiled using the _default_ toolchain, that is, the latest version of the `stable` toolchain that you have installed.

### Downgrade the nightly toolchain

If your computer is configured to use the latest Rust `nightly` toolchain and you want to downgrade to a specific nightly version,you must first uninstall the latest `nightly` toolchain.
If your computer is configured to use the latest Rust `nightly` toolchain and you want to downgrade to a specific nightly version, you must first uninstall the latest `nightly` toolchain.
For example, you can remove the latest `nightly` toolchain, then use a specific version of the `nightly` toolchain by running commands similar to the following:

```sh
Expand All @@ -129,17 +129,17 @@ rustup target add wasm32-unknown-unknown --toolchain nightly-<yyyy-MM-dd>

## Ensure PATH is set correctly

If after installing Rust the commands don't seem to work, showing errors such as `command not found: rustup`, make sure it your PATH is configured correctly.
If after installing Rust the commands don't seem to work, showing errors such as `command not found: rustup`, make sure that your PATH is configured correctly.

Currently, the `rustup` installer installs by default to the bash profile (on mac). If you are using another shell, make sure to add this line to your profile (e.g. `.zshrc`):
Currently, the `rustup` installer installs by default to the bash profile (on Mac). If you are using another shell, make sure to add this line to your profile (e.g. `.zshrc`):

```bash
source "$HOME/.cargo/env"
```

## Installing cmake or protobuf for M1 macOS users
## Installing cmake or protobuf for Apple Silicon (M-series) macOS users

Currently, there are issues compiling the Substrate node when using the packages that are pre-installed on macOS computers with the M1 chip.
Currently, there are issues when compiling the Substrate node while using the packages that are pre-installed on macOS computers with the M-series chip.

```sh
error: failed to run custom build command for prost-build v0.10.4
Expand Down

0 comments on commit 406d3b6

Please sign in to comment.