-2

I am using Ubuntu13.0. just tried to install Ruby2.0 using the Link. After the installation when I did ruby -v,found:

kirti@kirti-Aspire-5733Z:~$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]

I just removed 1.8.7 using How can I uninstall Ruby on ubuntu?

please help me to re-install Ruby2.0.

Community
  • 1
  • 1
Arup Rakshit
  • 116,827
  • 30
  • 260
  • 317
  • what will you get if you write '$ which ruby' in bash ? – MC2DX Apr 28 '13 at 05:37
  • @MateuszCzerwiński I want to install ruby2.0. How to do so? please guide me. I uninstall ruby1.8.7 – Arup Rakshit Apr 28 '13 at 05:56
  • 2
    Maybe this link will be usefull - http://rubysource.com/installing-ruby-with-rvm-on-ubuntu/ or try read sth about rvm (ruby version manager) https://rvm.io – MC2DX Apr 28 '13 at 05:59

2 Answers2

1

Finally I did it using Ubuntu 13.04 install RVM with Ruby 2.0.0-p0 , Rails 4.0.0 beta1. This is an awesome link.

Arup Rakshit
  • 116,827
  • 30
  • 260
  • 317
0

You should add the path to ruby2.0 to environment variables in your ~/.bashrc:

export PATH=/ruby_2_bin_path/:$PATH
David Cain
  • 16,484
  • 14
  • 65
  • 75
jjy
  • 66
  • 1
  • 5