Successfully installed Ruby 1.9.2 with RVM, but now it's back to 1.8.7

Note: Im on OSX 10.6.6

I have successfully installed 1.9.2 using RVM. After that I launched rvm --default use 1.9.2, which also worked fine. Ran Ruby -v and, of course, 1.9.2 appeared.

Now I closed the terminal session and opened a new one, launched ruby ​​-v, and it returned back to 1.8.7

I uninstalled rvm, re-installed, and the same thing happens.

Any ideas?

thanks

+4
source share
1 answer

You need to add the following to the ~ / .bash_profile file to ensure that the RVM is loaded correctly in the terminal session:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 
+5
source

Source: https://habr.com/ru/post/1344041/


All Articles