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
Answers
Install
pkg-config
withlibssl-dev
:Then install rust from
mxpy
CLI:After these, the smart contract should compile.
Other possible useful details can be found under SDK and Tools > Troubleshooting > Fix Rust installation.
External process error: │
│ Command line: [‘/home/me/multiversx-sdk/rustup.sh’, ‘–verbose’, │
│ ‘–default-toolchain’, ‘nightly-2023-12-11~’, ‘–profile’, ‘minimal’, ‘–target’, │
│ ‘wasm32-unknown-unknown’, ‘-y’] │
│ Output: info: downloading installer │
│ error: error: invalid value ‘nightly-2023-12-11~’ for ‘–default-toolchain │
│ ‘: invalid official toolchain name ‘nightly-2023-12-11~’ │
│ │
│ For more information, try ‘–help’. │
│ │
│ │
│ Caused by: │
│ invalid official toolchain name ‘nightly-2023-12-11~’
This is after following along with all related material, I am not sure why its not overwriting.