I followed this guide: http://samsoff.es/posts/how-to-install-ruby-193
I typed rbenv install 1.9.3-p125in the console.
rbenv install 1.9.3-p125
Ruby installs OK, but when I start ruby -vit still says version 1.8.7.
ruby -v
What needs to be changed for its work?
The solution was to add eval "$(rbenv init -)"bash_login to my file.
eval "$(rbenv init -)"
You need to switch to the new version in one of three ways:
rbenv shell 1.9.3-p125
rbenv local 1.9.3-p125
rbenv global 1.9.3-p125
rbenv, ruby-build.
, rbenv
$exec $SHEL $ ruby -vruby 1.9.3p194 (2012-04-20 35410) [i686-linux]
$exec $SHEL $ ruby -v
ruby 1.9.3p194 (2012-04-20 35410) [i686-linux]