I'm using the fish shell under MacOS X Capitan and after using rustup.rs I get the following message:
Rust is installed now. Great!
To get started you need Cargo's bin directory in your PATH environment variable. Next time you log in this will be done automatically. The next time I logged in Cargo was not in my PATH. I had to add it manually.
In my.config/fish/fish.config file I have a:
set -x PATH...
line where I had to manually add cargo bin's:
set -x PATH... .cargo/bin
fish_add_path
commandfish_add_path /home/your-username/.cargo/bin/
my path: fish_add_path /Users/aharo/.cargo/bin/
rustc
Follow the steps
~/.config/fish/config.fish
;set PATH $PATH ~/.cargo/bin
; and
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.