I have installed the Rust programming language (Debian). Now i can compile and run programs from terminal (with the cargo build
and cargo run
commands), but not from inside emacs. The cargo compiler stays on my system in /home/me/.cargo/bin/cargo
and emacs is not looking there to find the interpreter. I get this error /bin/bash: cargo: command not found
by running M-x &, cargo build
. So how can i tell emacs the address of cargo binary, or is it better to send the binary to the address emacs looks in?
Asked
Active
Viewed 752 times
1
-
1I think you forgot to add `export PATH="$HOME/.cargo/bin:$PATH"` to your bashrc ? You should also try [cargo.el](https://github.com/kwrooijen/cargo.el). – bertfred Aug 07 '17 at 11:36
-
`export PATH="$HOME/.cargo/bin:$PATH"` is already in bashrc. I have installed the cargo.el package, same error. Emacs can't find the cargo binary. – Aug 07 '17 at 12:47