Install Ruby 2.0.rc1
source link: https://www.sethvargo.com/install-ruby-2-0-rc1/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Ruby 2.0 is no longer a work in progress! Ruby 2.0 Release Candidate 1 was released today! Here's how to get it:
Install Homebrew:
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Make sure brew is up to date:
brew update
Install rbenv, ruby-build, and openssl:
brew install rbenv ruby-build openssl
Or, if you already have rbenv:
brew upgrade rbenv
Use rbenv to install Ruby 2.0 RC1
rbenv install 2.0.0-rc1
Special Cases
You may need to specify the location for the ssl directory:
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` rbenv install 2.0.0-rc1
You may also need to specify a different GCC
CONFIGURE_OPTS=--with-gcc=clang rbenv install 2.0.0-rc1
I highly suggest you install Ruby 2.0. There are some significant speed improvements and optimizations in the language.
About Seth
Seth Vargo is an engineer at Google. Previously he worked at HashiCorp, Chef Software, CustomInk, and some Pittsburgh-based startups. He is the author of Learning Chef and is passionate about reducing inequality in technology. When he is not writing, working on open source, teaching, or speaking at conferences, Seth advises non-profits.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK