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
...
2.0.0-p0
...
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
Written by Bhavin Javia
Related protips
2 Responses
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 - https://github.com/sstephenson/rbenv-default-gems
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#