How to install Ruby 2 on Ubuntu without RVM -


i want install ruby 2.0 using

sudo apt-get install ruby2.0 

but there isn't available package ruby2.0

i want install using apt-get install same ruby 1.9.1

any suggestions?

sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz tar -xvzf ruby-2.0.0-p451.tar.gz cd ruby-2.0.0-p451/ ./configure --prefix=/usr/local make sudo make install

from here how install ruby 2.0.0 correctly on ubuntu 12.04?

update

for ruby 2.1.5

 sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz  tar -xvzf ruby-2.1.5.tar.gz cd ruby-2.1.5/ ./configure --prefix=/usr/local make sudo make install 

if still seeing older ruby check symlink ls -la /usr/bin/ruby hector


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -