rustを入れようとしたけど、エラーが出る
macユーザでrustのインストールでエラーが出る。
rustのインストールの時にコマンド上で、
error: could not amend shell profile: '/Users/jin237/.bash_profile'
error: caused by: could not write rcfile file: '/Users/jin237/.bash_profile'
error: caused by: Permission denied (os error 13)
と出てしまう。。。
入力コマンドが
デフォルトで
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
または
curl https://sh.rustup.rs -sSf | sh
を入れてるところを、
下のように変えるとインストールできる。
$ curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path
$ rustup default stable
中身の説明は省略。