Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

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

1 Answer 1

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)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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