I am totally new to Rust and I wanted to install it. I followed the installation guide on the website. I use Linux Mint, thus I ran the following in a terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After this, when I open a new terminal, the bash: export: `/home/user/.cargo/env': not a valid identifier message appears on top of the terminal.
I figured out it is due to the following line which has been added during the installation in the .bashrc file:
export PATH=$PATH:$HOME/.local/binsource "$HOME/.cargo/env"
In the end, I solved the identifier error changing the previous line in the .bashrc file with this:
export PATH=$PATH:$HOME/.local/binsource:$HOME/.cargo/env
I open this issue because I think fixing this in the installation procedure could help some new inexperienced user (like me) facing it at the end of the installation procedure
I am totally new to Rust and I wanted to install it. I followed the installation guide on the website. I use Linux Mint, thus I ran the following in a terminal:
After this, when I open a new terminal, the
bash: export: `/home/user/.cargo/env': not a valid identifiermessage appears on top of the terminal.I figured out it is due to the following line which has been added during the installation in the
.bashrcfile:In the end, I solved the identifier error changing the previous line in the
.bashrcfile with this:I open this issue because I think fixing this in the installation procedure could help some new inexperienced user (like me) facing it at the end of the installation procedure