I want to install ruby 2.0 using
sudo apt-get install ruby2.0
But there isn't available package for ruby2.0
I want to install it using apt-get install the same like ruby 1.9.1
Any suggestions?
I want to install ruby 2.0 using
sudo apt-get install ruby2.0
But there isn't available package for ruby2.0
I want to install it using apt-get install the same like ruby 1.9.1
Any suggestions?
Since this question was answered I have found a new alternative here:
https://www.brightbox.com/docs/ruby/ubuntu/
In short:
I must say that according to my tests this is faster than the alternatives shown here, because the compiling step is skipped.
I particularly like ruby-install, available here: https://github.com/postmodern/ruby-install
It will install ruby (any version), JRuby, etc., and has many other features besides.
from here How do I install ruby 2.0.0 correctly on Ubuntu 12.04?
UPDATE
for ruby 2.1.5
if you are still seeing an older ruby check your symlink
ls -la /usr/bin/ruby
from hectorThe better way to install ruby on ubuntu without RVM is to install it with rbenv in terminal as follows:
Install the rbenv and Ruby dependencies with apt-get:
Now run these commands as follows:
Time to install ruby:
which ever is the latest and stable version
To check the version
To disable the local documentation, as this process can be lengthy:
Install the bundler gem, to manage your application dependencies:
Easy to use ^ㅡ^