0

I have run the code:

sudo apt-get install ruby 2.5.0

then:

update-alternatives --query ruby

which throws error:

update-alternatives: error: no alternatives for ruby

I also used the code:

wget http://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.gz
tar -xzvf ruby-2.5.3.tar.gz
cd
cd ruby-2.5.3/
./configure
make
sudo make install

but this too didn't work as when I run this code to check the version:

ruby -v

it shows the previous version i.e. ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]

this question is repeated but the other solutions didn't work for me. Any suggestion or help will be appreciated.

spd_25
  • 1

0 Answers0