Using Rust on MCECS Linux
Using tier-1 Linux systems in MCECS (ada, ruby/rita, lab machines, etc.), you may notice a lack of system-wide install of the Rust programming language build tools. Rust is a fast moving language and the best way to ensure that you have access to the features you need is to do a personal install via Rustup.
Installing Rustup
Rustup can be installed by way of the curl command on Rust’s website:
https://www.rust-lang.org/tools/install
Or via the “Manual Installation” header here:
https://rust-lang.github.io/rustup/installation/other.html
To have access to the rustc, rustup, and cargo commands after installing Rustup, you’ll want to modify your PATH variable.
Setting your PATH variable
You can determine which shell you’re using by running the following command:
echo $SHELL
If you’re using BASH or ZSH, add the following line to your ~/.bashrc or ~/.zshrc:
export PATH=$PATH:$HOME/.cargo/bin
If you’re using CSH or TCSH, add the following line to your ~/.cshrc or ~/.tcshrc :
setenv PATH $PATH:$HOME/.cargo/bin