Building a rails environment with Rails girls 3-4. Install Ruby using rbenv: I stumbled on it, so make a note
$rbenv install 2.7.0
And type the command
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/username/.rbenv/plugins/ruby-build && git pull && cd -
That's right.
rbenv install --list
If you check with
2.6.0
2.6.1
2.6.2
2.6.3
2.7.0-dev
jruby-1.5.6
jruby-1.6.3
Certainly not
brew upgrade ruby-build
I get the same error when I try. If you look closely at the first error statement
cd /Users/username/.rbenv/plugins/ruby-build && git pull && cd -
He wrote something that he should bother to do. So
cd /Users/username/.rbenv/plugins/ruby-build
git pul
rbenv install 2.7.0
When you hit
Installed ruby-2.7.0 to /Users/username/.rbenv/versions/2.7.0
did it.
Recommended Posts