shell profile 수정할 수 없다는 에러때문에 아래와 같은 방법을 시행
Give a try using this not using sudo:
curl https://sh.rustup.rs -sSf | sh -s -- --help
If that works then probably you could try:
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path
If the command with the --no-modify-path option works, you'll have to manually update .bash_profile to include it in your path:
source ~/.cargo/env
.bash_profile 을 수정하지 않고 설치했기때문에, 설치한다음 .bash_profile 에 source ~/.cargo/env
를 추가해줘야한다.
zsh 쉘을 사용한다면 .zprofile 에 추가해주면 됨.
설치가 제대로 됐다면 rustc -V 를 치면 러스트 버전이 뜨는걸 확인할 수 있다.