rvm get head (to get the latest version of rvm)
[root@localhost ~]# rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6/x86_64/ruby-2.0.0-p598.
Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-p598, this may take a while depending on your cpu(s)…
ruby-2.0.0-p598 – #downloading ruby-2.0.0-p598, this may take a while depending on your connection…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.2M 100 10.2M 0 0 20471 0 0:08:45 0:08:45 –:–:– 28436
ruby-2.0.0-p598 – #extracting ruby-2.0.0-p598 to /usr/local/rvm/src/ruby-2.0.0-p598….
ruby-2.0.0-p598 – #applying patch /usr/local/rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-2.0.0-p598 – #configuring…………………………………………..
ruby-2.0.0-p598 – #post-configuration..
ruby-2.0.0-p598 – #compiling…………………………………………………………………..
ruby-2.0.0-p598 – #installing…………………………
ruby-2.0.0-p598 – #making binaries executable..
ruby-2.0.0-p598 – #downloading rubygems-2.4.5
ruby-2.0.0-p598 – #extracting rubygems-2.4.5…..
ruby-2.0.0-p598 – #removing old rubygems………
ruby-2.0.0-p598 – #installing rubygems-2.4.5………………
ruby-2.0.0-p598 – #gemset created /usr/local/rvm/gems/ruby-2.0.0-p598@global
ruby-2.0.0-p598 – #importing gemset /usr/local/rvm/gemsets/global.gems…………………………………………………..
ruby-2.0.0-p598 – #generating global wrappers……..
ruby-2.0.0-p598 – #gemset created /usr/local/rvm/gems/ruby-2.0.0-p598
ruby-2.0.0-p598 – #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.0.0-p598 – #generating default wrappers……..
ruby-2.0.0-p598 – #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.0.0-p598 – #complete
[root@localhost ~]# rvm use 2.0.0
Using /usr/local/rvm/gems/ruby-2.0.0-p598
[root@localhost ~]# rvm gemset create rails4
ruby-2.0.0-p598 – #gemset created /usr/local/rvm/gems/ruby-2.0.0-p598@rails4
ruby-2.0.0-p598 – #generating rails4 wrappers……..
[root@localhost ~]# ruby –version
ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-linux]
Ruby was built without documentation, to build it run: rvm docs generate-ri
rvm use 2.0.0
One thought on “Install Ruby 2.0 on CentOS 6.x”