0

I want to install rvm and geting problem. Here is my command which i run in ubnto 2.10 How can i do this?

root@jaskaran-Vostro-1550:/home/jaskaran# rvm install 2.1.0
The program 'rvm' is currently not installed. You can install it by typing:
apt-get install ruby-rvm
root@jaskaran-Vostro-1550:/home/jaskaran# apt-get install ruby-rvm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ruby-rvm
Harman
  • 1,703
  • 5
  • 22
  • 40

3 Answers3

2

Use this instead to install RVM:

curl -sSL https://get.rvm.io | bash

You can refer to official RVM Installation Page.

Once RVM is successfully installed, make it available in the current shell:

source /etc/profile.d/rvm.sh 

Then you can install the Ruby version you want:

rvm install 2.1.0 to install Ruby version 2.1.0.

lucke84
  • 4,516
  • 3
  • 37
  • 58
Kirti Thorat
  • 52,578
  • 9
  • 101
  • 108
1

You probably want to clean up your environment first just like this post tells you to: Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v

Community
  • 1
  • 1
yoppuyoppu
  • 480
  • 4
  • 13
0

You can also do this:

sudo apt-get install rvm

next you will have to source the source /home/username/.rvm/scripts/rvm

after then you can go ahead and install by running

rvm install version

Hope this help another person.