初めに
今回は自分がRubyをAndroid Studioで使おうとした時に起こったエラーへの対応を紹介していこうと思います
本文
今回は.bash_profile
がないと言われた時の対応を紹介していきます
まず、必要なフォルダ直下で下記のコマンドを打ちます
bash_profileの作成
vi .bash_profile
そうすると、.bash_profile
というファイルが作成されるのでI
キーを押して入力モードにし、下記を入力します
bash_profileの中身の設定
eval "$(rbenv init -)"
入力が終わったらエスケープキーを押し入力モードを終了した後に:wq
を入力して保存して終了します
最後に下記のコマンドを打ち込めば終了です
bash_profileを参照するように設定
source ~/.bash_profile
最後に
今回は、自分が詰まってしまっていた部分を備忘録程度に紹介していきました
どなたかのお役に立てれば幸いです