I just installed Rust by curl https://sh.rustup.rs -sSf | sh
and rebooted my system. But I cannot access cargo
, rustc
.. on my terminal.
My .profile file contains the following line
export PATH="$HOME/.cargo/bin:$PATH"
I'm using Xfce 4.12 as my desktop env.
I can guess this happens because, my PATH variable is not working .. ?
So, my question is, .profile not work in Xfce(I'm very much new to Xfce) as with Gnome? and how should I resolve this.
Thank you in advance.
Try adding
to
~/.xsessionrc
.As has been determined in the comments, the
~/.profile
not being loaded is the root cause of the issue. The solution is to either start the shell with--login
option or relocate the variable declaration and export into~/.bashrc
file so that it is available in every interactive shell.