-
macOS) Rust programming language Path Setting코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 17. 09:30728x90
source $HOME/.cargo/env
https://i5i5.tistory.com/m/378
Quick fix:
open terminal
go to preferencies
choose your profile (default)
open tab called "Shell"
add run command on start "source $HOME/.cargo/env"
if your terminal configured to your username and you are an admin this should work, but this is just a quick fix
My OS is 10.11.5
Also check what profile you are using, you can configure one and might end up using some other.
I see that that's the case to some people, so if you use .bash_profile instead of .profile, or the other way around (or any profile for that matter).
Just put export PATH="$HOME/.cargo/bin:$PATH" in your profileexport PATH="$HOME/.cargo/bin:$PATH"
여기가 핵심인듯
zshrc에서 뻘ㄷㅅ 했는데
You see, it fixes it on new versions of Mac, and most versions of Linux and FreeBSD as well. .bash_profile was never really the intended home for environment variables, especially not on GUIs, for bash. Mostly that is what .bashrc is for.
Old versions of Mac OSX have an aberrant behavior regarding this, compared to other versions of bash. Newer versions, I think at least since Catalina, have a more normal behavior, partly because they use zsh as their default (which favors .zshenv), but I am given to understand that new bashes for Mac are also fixed, and just in general I am not aware of anything actually stopping you from installing a new bash on an older Mac.
https://github.com/rust-lang/rustup/issues/371
https://github.com/rust-lang/book/pull/2922
다른 단서
https://etloveguitar.tistory.com/m/31?category=910837
반응형'코딩Coding > 한글Rust강의★내가★공부하려고만듬' 카테고리의 다른 글
Rust❤️ MultiThreading 파이썬과 비교해서 (0) 2022.06.19 Rust Error Handling❤️ (0) 2022.06.18 rust❤️wasm] wasm-bindgen동영상 만들 예정❤️ (0) 2022.06.18 Rust❤️]Live-Coding a linked hash map in Rust (0) 2022.06.17 Porting Java's❤️ConcurrentHashMap ❤️to Rust (part 1~3) (0) 2022.06.16 Rust❤️동영상 만들 예정) todo앱 만들기 wasm최신 웹기술 들어감 (0) 2022.06.16 Rust❤️) rayon을 활용하여 벡터에 담은 숫자를 차례대로 출력하기 모든 답은 공식 문서에 ^^; (0) 2022.06.14 Rust❤️ ] rayon을 활용한 벡터에 이쁘게 숫자 차례대로 담기 (0) 2022.06.14