Skip to content

Commit 88fe4a5

Browse files
Merge pull request #800 from multiversx/rust-setup-2024-01-15
Update Rust troubleshooter
2 parents e0d5ead + 508915a commit 88fe4a5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/sdk-and-tools/troubleshooting/rust-setup.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ If you've installed Rust using your OS package manager:
1616
```bash
1717
# Ubuntu
1818
sudo apt remove cargo
19+
sudo apt remove rustc
1920
sudo apt autoremove
2021
```
2122

@@ -35,6 +36,12 @@ brew uninstall rust
3536
We never recommend installing Rust using `brew`, especially because it makes it non-trivial to switch between different Rust versions.
3637
:::
3738

39+
If you've installed Rust using `snap`:
40+
41+
```bash
42+
snap remove rustup
43+
```
44+
3845
If you've installed Rust using `mxpy` with a version older than `v9`:
3946

4047
```bash
@@ -85,7 +92,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
8592

8693
Then, choose **Proceed with installation (default)**.
8794

88-
Once Rust is installed, switch to a nightly version and install the `wasm32-unknown-unknown` target:
95+
Once Rust is installed, open a new terminal (shell), then switch to a nightly version and install the `wasm32-unknown-unknown` target:
8996

9097
```bash
9198
rustup default nightly-2023-12-11
@@ -127,6 +134,14 @@ cargo install multiversx-sc-meta --locked
127134

128135
For a workaround, please follow this [GitHub issue](https://github.com/multiversx/mx-sdk-py-cli/issues/338).
129136

137+
### Handle missing dependencies: build-essential
138+
139+
On Ubuntu, you might also need to install `build-essential`:
140+
141+
```bash
142+
sudo apt-get install build-essential
143+
```
144+
130145
## Check your Rust installation
131146

132147
You can check your Rust installation by invoking `rustup show`:

0 commit comments

Comments
 (0)