Last Updated: February 25, 2016
· bhavinjavia

Install Ruby 2.0 with rbenv on Mac

If you're using homebrew and rbenv on Mac, and want to get on the Ruby 2.0 bus, do this

brew upgrade rbenv
brew upgrade ruby-build
rbenv install 2.0.0-p0

If all goes well, you should see something like the following -

rbenv versions

Start rocking with your new shiny Ruby 2.0 !

rbenv local 2.0.0-p0
gem install bundler

And if you've itching to get on the Rails 4.0 bus as well, here you go -

gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc

2 Responses
Add your response

Do you know any way to move the current gem from 1.9.x to 2.0 with rbenv ;)

over 1 year ago ·

@nxqd if by 'move' you mean install a gem to newly installed ruby with rbenv, then I guess this would help -

over 1 year ago ·