Rust-racer 的货物路径设置

KDN*_*KDN 6 rust rust-cargo

我刚刚安装racer使用cargo. 安装后说:

Installing /home/karthik/.cargo/bin/racer
warning: be sure to add `/home/karthik/.cargo/bin` to your PATH to be able to run the installed binaries
Run Code Online (Sandbox Code Playgroud)

我该怎么做呢?谷歌搜索没有帮助。另外,我也应该PATH为货箱设置一个变量吗?

编辑:操作系统是 Ubuntu 14.04,我有超级用户访问权限

JDe*_*ler 7

您必须将货物箱路径添加到您的PATH变量中并设置RUST_SRC_PATHin.profile.bash_profile

相关的 unix.stackechange 问题