Dependency missing: rust nightly - Rust not installed

79 Views Asked by At

I try to configure Ubuntu VM for MultiversX developers. I follow the instructions on the site, but when I try to compile a smart contract I get the bellow issue:

Rust is not installed on your machine. Run mxpy deps install rust --overwrite and try again.
CRITICAL cli: Dependency missing: rust nightly-2023-12-11
Dependency missing: rust nightly-2023-12-12

But Rust is installed.

The following command:

rustup show

displays:

installed targets for active toolchain
---------------------------------------

wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-2023-12-11-x86_64-unknwon-linux-gnu (default)
rustc 1.76.0-nightly (d86d65bbc 2023-12-10)
2

There are 2 best solutions below

0
On

Install pkg-config with libssl-dev:

sudo apt-get install pkg-config libssl-dev

Then install rust from mxpy CLI:

mxpy deps install rust —overwrite

After these, the smart contract should compile.

Other possible useful details can be found under SDK and Tools > Troubleshooting > Fix Rust installation.

1
On

I'm having issues with downloading wasm-opt through cargo it gets held up in processes at 57 of 63, but I am not understanding why, I am following along with this install on mvx, this has gotten me farther than before so that is a huge plus, great write up, side note do I need wasm-opt? or can i still build contacts without it? Any follow up information would be appreciated, thanks in Advance