0
0

More than 1 year has passed since last update.

Rubyを使おうとした時のエラー対応

Posted at

初めに

今回は自分がRubyをAndroid Studioで使おうとした時に起こったエラーへの対応を紹介していこうと思います

本文

今回は.bash_profileがないと言われた時の対応を紹介していきます
まず、必要なフォルダ直下で下記のコマンドを打ちます

bash_profileの作成
vi .bash_profile

そうすると、.bash_profileというファイルが作成されるのでIキーを押して入力モードにし、下記を入力します

bash_profileの中身の設定
eval "$(rbenv init -)"

入力が終わったらエスケープキーを押し入力モードを終了した後に:wqを入力して保存して終了します
最後に下記のコマンドを打ち込めば終了です

bash_profileを参照するように設定
source ~/.bash_profile

最後に

今回は、自分が詰まってしまっていた部分を備忘録程度に紹介していきました
どなたかのお役に立てれば幸いです

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0