0
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 3 years have passed since last update.

Railsの環境構築でつまづいたのでメモ

Posted at

Rails girlsでrailsの環境構築していところ
3-4. rbenvを使ってRubyをインストール:
でつまづいたのでメモ

$rbenv install 2.7.0

とコマンドを打つと

The following versions contain `2.7.0' in the name:
  2.7.0-dev
  jruby-9.2.7.0
See all available versions with `rbenv install --list'.
If the version you need is missing, try upgrading ruby-build:
  cd /Users/ユーザー名/.rbenv/plugins/ruby-build && git pull && cd -

そんなのねーよとでてしまう。

rbenv install --list

で確認すると

 2.6.0
 2.6.1
 2.6.2
 2.6.3
 2.7.0-dev
 jruby-1.5.6
 jruby-1.6.3

確かにない

brew upgrade ruby-build

をしてみても同じエラーが出る。
最初のエラー文をよくみると

cd /Users/ユーザー名/.rbenv/plugins/ruby-build && git pull && cd -

わざわざするべきことを書いていてくれた。
なので

 cd /Users/ユーザー名/.rbenv/plugins/ruby-build
git pul
rbenv install 2.7.0

と打つと

Installed ruby-2.7.0 to /Users/ユーザー名/.rbenv/versions/2.7.0

できた。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?