breaking into the unknown…

rvm not found or installed

1 Comment

RVM installation instruction is properly documented at the RVM site. The detail installation instruction are available here

Just run below commands on terminal and you are done.

$ sudo apt-get install bash

$ sudo apt-get install git

$ sudo apt-get install curl

$  \curl -L | bash -s stable  #there is a backslash before curl. This prevents misbehaving if you have aliased it with configuration in your ~/.curlrc file.

……log message ending with as below….

Installation of RVM in /home/arun/.rvm/ is almost complete:

* To start using RVM you need to run `source /home/arun/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.

The last few line of instruction is very important. It tells where your rvm is installed and how to start it.

To test That your rvm is installed and working properly. run below command on the terminal

$ type rvm | head -1

If you get the message rvm is a function , it means its is working properly. But if you encountered message like rvm not found or rvm not installed. It just means that your rvm is not loaded to system path. check it out yourself

$ echo $PATH # for me it gives below result, you can see that my rvm is loaded to path variable


If you not found, rvm in your path variable you need to load it. All the things to do that is present in $HOME/.rvm/scripts/rvm file assuming that my rvm is installed in home folder, for me $HOME means /home/arun. You just need to source this file. You can do it in following ways

-> whenever you open the terminal run below command

$ source “$HOME/.rvm/scripts/rvm”

-> Create a .bash_profile file in home folder if not already exist and add below line to it

[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”

Now, from terminal run the command

$source .bash_profile

This , step is almost same as last one. In both case, you have to run the source command for all the new terminal you open

-> add below line to .bashrc file

[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”

This is the best option. As .bashrc file is automatically exicuted when you open a terminal, rvm will be automatically loaded when ever you open a terminal

-> add below line to /etc/profile

[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”

This, will add rvm to $PATH variable, when ever you start your system. Though, this also server my purpose as I don not have to source the path every time. but I avoid it as, I do not want to load the rvm untill I really want to use it. But in production, I think this would be best as it will load the rvm when server get started

Removing RVM

Sometime, installation goes wrong and the best option is to uninstall and reinstall the things. Lets assume that, our last RVM installation was not proper. So, you can remove it completely with below command

$rvm implode # you will see the below message
Are you SURE you wish for rvm to implode?
This will recursively remove /home/arun/.rvm and other rvm traces?
(anything other than ‘yes’ will cancel) > yes # thus write yes and press enter
Removing rvm-shipped binaries (rvm-prompt, rvm, rvm-sudo rvm-shell and rvm-auto-ruby)
Removing rvm wrappers in /home/arun/.rvm/bin
Hai! Removing /home/arun/.rvm
/home/arun/.rvm has been removed.
rvm has been fully removed. Note you may need to manually remove /etc/rvmrc and ~/.rvmrc if they exist still

Author: arunyadav4u

over 7 years experience in web development with Ruby on Rails.Involved in all stage of development lifecycle : requirement gathering, planing, coding, deployment & Knowledge transfer. I can adept to any situation, mixup very easily with people & can be a great friend.

One thought on “rvm not found or installed

  1. tanks brother,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s