I installed ruby ​​1.9.2 with RVM, but when I type "ruby -v" they tell me that ruby ​​v I am 1.8.7 (mac)

when I write in the triple "rvm list", I get the following:

rvm rubies

   ruby-1.9.1-p378 [ x86_64 ]
   ruby-1.9.2-p136 [ x86_64 ]

but when I type "ruby -v", I get the following:

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

What am I doing?

+5
source share
2 answers

Have you tried rvm use 1.9.2? Installing rubies does not make them an executable version of ruby. RVM will only make rubyversion 1.9.2 if you tell it, rvm use 1.9.2orrvm use 1.9.1

If you want rvm to use 1.9.2 by default, use rvm --default use 1.9.2

+4
source

, , , , , RVM Post Install (. RVM Install, .

RVM:

Post Install

, RVM, ~/.bash_profile , ..:

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

RVM .

. zsh, , ~/.zshrc

, rvm ( ), , rvm, .

:

, rvm - , - . , PATH. .

+2

All Articles