toradex / vscode-torizon-templates

VS Code Torizon Integrated Development Environment Templates
MIT License
14 stars 20 forks source link

rust: On deps installation script, remove Rust installed through apt #207

Closed andreriesco closed 2 months ago

andreriesco commented 2 months ago

When trying to install Rust through rustup, with the Rust packages installed through apt present, the following message is shown:

info: downloading installer warning: it looks like you have an existing installation of Rust at: warning: /usr/bin warning: It is recommended that rustup be the primary Rust installation. warning: Otherwise you may have confusion unless you are careful with your PATH warning: If you are sure that you want both rustup and your already installed Rust warning: then please reply y' oryes' or set RUSTUP_INIT_SKIP_PATH_CHECK to yes warning: or pass `-y' to ignore all ignorable checks. error: cannot install while Rust is installed

Continue? (y/N)

So it is better to remove the ones installed through apt before installing the ones through rustup.