1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rubyのversionが切り替えられない時

Last updated at Posted at 2018-08-04

#cocoapodsのエラーで、Rubyが古いことが原因だと思われる時の話

とりあえずこのコマンド打ち込め笑
export PATH=$HOME/.rbenv/bin:$PATH

##手順
まず、rubyのversionを確認
rbenvのversionを確認

###rbenvのversionが古い時
rbenvのアップデートはいけると思う(頑張って)

###rubyのversionが古い時
・rubyのversionが単に古いのであればupdate
・rubyのversionは新しくできたはずだが、versionが古い方から変えられない時は、とりま次のコマンドを打ち込もう!!
export PATH=$HOME/.rbenv/bin:$PATH
うまくいかない時は、
export PATH="~/.rbenv/shims:/usr/local/bin:$PATH"
こっちも試してみよう!!

基本的にはこれで対応できるはずです!!

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?