Translate

March 3, 2013

How to Install ruby 2.0 with RVM

Ruby 2.0 was released on 24th February 2013, on the 20th birthday of Ruby.
Get the newest version with favorite ruby version manager rvm.
You must install libyaml because Ruby 2.0 deprecated syck in favor of psych.

Make sure you have the latest RVM:
rvm get stable

Execute following command from terminal after installing RVM:

# For Mac with Homebrew
brew install libyaml

# For Ubuntu systems
apt-get install libyaml-dev
rvm pkg install openssl
rvm install 2.0.0 --with-openssl-dir=$HOME/.rvm/usr  --verify-downloads 1
rvm use 2.0.0
rvm use 2.0.0

OR Simply use following
rvm get stable && rvm install ruby-2.0.0

No comments: