I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not.

enter image description here

I was browsing the web for a solution and I found the following command: enter image description here

After this, bash was able to see ruby. I can't understand how did this happen. From my perspective, the command was absolutely useless as I just installed the latest rvm version.

  • Did you restart your bash session after installing RVM? – MattDMo Jan 19 '14 at 20:01
  • Indeed, in the meantime I executed '~/.bashrc'. I assume that was the real cause. Cheers. – user3122885 Jan 19 '14 at 22:09

From your second screen shot you may noticed that rvm add RVM path to /home/octavian/.bashrc . So bash will know about it. try

grep -i rvm /home/octavian/.bashrc

Same for sh (/home/octavian/.shrc)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.