-
macOS) Rust programming language Path Setting코딩Coding/한글Rust강의★내가★공부하려고만듬 2022. 6. 17. 09:30728x90
source $HOME/.cargo/env
https://i5i5.tistory.com/m/378[Linux] which 명령어가 나타내는 PATH 바꾸는 방법. How to change the path that comes with the output of which comman
궁금한 것 which 명령어가 나타내는 PATH 바꾸는 방법. (How to change the path that comes with the output of which command?) 보통 리눅스 시스템에서 which mex를 입력하면 AAA 명령어에 대한 해당 경로가..
i5i5.tistory.com
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/371PATH not set post installation on OS X 10.11.4 · Issue #371 · rust-lang/rustup
The installer said it would set the path, after installation, but even after installation there's no sign of rustup.
github.com
https://github.com/rust-lang/book/pull/2922Make need to open new shell post-install clearer by 266-750Balloons · Pull Request #2922 · rust-lang/book
The current text makes it easy to miss the fact that you need to open a new shell after the install for the new path variables to be usable. To make it clearer, add a discrete statement to open a n...
github.com
다른 단서
https://etloveguitar.tistory.com/m/31?category=910837[MAC] 터미널 켤 때 bash_profile 내용 자동 적용하는 법 (run ~/.bash_profile when terminal start up)
bash_profile을 열심히 수정해도 터미널을 막상 시작하면 바로 적용이 안되는 경우가 있다. 그럴 때는 1) bash_profile에 아래 라인을 추가한다해주면 된다 [[ -s ~/.bashrc ]] && source ~/.bashrc 2) iTerm의 Pr..
etloveguitar.tistory.com
반응형'코딩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