How to install Ruby 2.1.4 on Ubuntu 14.04 -


I do not know how to install the latest Ruby on Ubuntu

First I Default Ruby is installed on 1.9.3, I tried to install my version of Ruby by using

  Pureo-Suited Appropriate Ruby  

Still "ruby 1.9.3p484 (2013-11-22).

  Rudo apt-mill installed ruby2.0  

amendment 43786) [x86_64 -linux]) "

What should I do?

post> itemprop = "text">

First of all, condition libraries installed:

  sudo go suitable update Sudo apt-get install git core curl zlib1g-dev must be created libssl- dev libreadline- dev libyaml- dev libsqlite3- dev sqlite3 libxml2- dev libxslt1- dev libcurl4-openssl- dev dragon-software properties libffi-dev  < / Pre> 

Then install rbenv, which is used to install Ruby:

  CD git clone https://github.com/rbenv/rbenv.git ~ /. Rbenv echo export penetration = "$ HOME / .rbenv / bin: $ PATH" '& gt; & Gt; ~ / .bashrc echo 'eval' $ (rbenv init -) "'> & gt; ~ / .bashrc Executive $ Shell Git Clone https://github.com/rbenv/ruby-build.git ~ / .rbenv / Plugins / ruby ​​creation echo 'export path = "$ HOME / .rbenv / plugins / ruby-build / bin: $ path' '& gt; & gt; ~ / .bashrc executive $ shell installed rbenv 2.3.1 rbenv global 2.3 RubyGems then not to install local documentation:  
  echo "gem: --no-ri - 1 Ruby - v  

Then (optional) No-rdoc "& gt; / .gemrc

Credit:

Warning !!! There gnome-shell < Issues with / code> . See note below.


Comments